Commit 8618b752 authored by olb's avatar olb
Browse files

Fix test with select2 (issue #167)

parent 9764b98e
......@@ -14,6 +14,7 @@ gem "factory_bot_rails", ">= 3.3.0", :group => [:development, :test]
gem "email_spec", ">= 1.2.1", :group => :test
gem "cucumber-rails", ">= 1.3.0", :group => :test, :require => false
gem "capybara", ">= 1.1.2", :group => :test
gem "capybara-select2", :github => 'goodwill/capybara-select2', :ref => '585192e', :group => :test
gem "database_cleaner", ">= 0.8.0", :group => :test
gem "launchy", ">= 2.1.0", :group => :test
gem "devise", ">= 2.1.0"
......
GIT
remote: git://github.com/goodwill/capybara-select2.git
revision: 585192e4bb0db8d52e761ab68f08c17294806447
ref: 585192e
specs:
capybara-select2 (1.0.1)
capybara
rspec
GEM
remote: https://rubygems.org/
specs:
......@@ -374,6 +383,7 @@ DEPENDENCIES
bootstrap-sass (~> 3.1.1.0)
cancancan (~> 1.10)
capybara (>= 1.1.2)
capybara-select2!
cocoon
coffee-rails
config
......
......@@ -282,7 +282,7 @@ Lorsque /^(?:que )?(je confirme|j'annule) mon choix dans la popup$/ do |confirm|
end
Lorsque /^(?:que )?je sélectionne le choix « (.*?) » dans la liste « (.*?) »$/ do |choice, list|
select choice, from: list
select2 choice, from: list
end
Lorsque /^(?:que )?je sélectionne la date « (.*?) » dans le champ « (.*?) »$/ do |choice, field|
......
......@@ -27,6 +27,7 @@ Spork.prefork do
end
Cucumber::Rails::Database.javascript_strategy = :truncation
include Capybara::Select2
# module Cucumber
# module Rails
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment