Skip to content

Commit

Permalink
Merge pull request #293 from twalpole/cucumber2
Browse files Browse the repository at this point in the history
Test fix / Cucumber 2 / Rails 4.2
  • Loading branch information
Kosmas committed Mar 30, 2015
2 parents 2af9160 + 607b2fc commit b043508
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ branches:

gemfile:
- gemfiles/capybara_1_1.gemfile
- gemfiles/rails_4_2.gemfile
- gemfiles/rails_4_1.gemfile
- gemfiles/rails_4_0.gemfile
- gemfiles/rails_3_2.gemfile
Expand Down
14 changes: 14 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,17 @@ appraise "rails_4_1" do
gem "sqlite3", "~> 1.3.7"
gem "database_cleaner", "~> 1.0.1"
end

appraise "rails_4_2" do
gem "rails", "~> 4.2.1"
gem "railties", "~> 4.2.1"
gem "capybara", "~> 2.4.4"
gem "selenium-webdriver", "~> 2.0"
gem "rspec-rails", "~> 3.1.0"
gem "sass-rails", "~> 5.0"
gem "coffee-rails", "~> 4.1.0"
gem "jquery-rails"
gem "uglifier", "~> 2.1.0"
gem "sqlite3", "~> 1.3.7"
gem "database_cleaner", "~> 1.0.1"
end
2 changes: 1 addition & 1 deletion cucumber-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Gem::Specification.new do |s|
s.license = 'MIT'

s.add_runtime_dependency('capybara', ['>= 1.1.2', '< 3'])
s.add_runtime_dependency('cucumber', ['>= 1.3.8', '< 2'])
s.add_runtime_dependency('cucumber', ['>= 1.3.8', '< 2.1'])
s.add_runtime_dependency('nokogiri', '~> 1.5')
s.add_runtime_dependency('rails', ['>= 3', '< 5'])
s.add_runtime_dependency('mime-types', ['>= 1.16', '< 3'])
Expand Down
4 changes: 2 additions & 2 deletions features/capybara_javascript_drivers.feature
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ Feature: Capybara Javascript Drivers
Scenario: Constitution on May 17
Given I am on the new appointment page
And I fill in "Norway's constitution" for "Name"
And I select "2009-02-20 15:10:00 UTC" as the "When" date and time
And I select "2015-02-20 15:10:00 UTC" as the "When" date and time
And I press "Create Appointment"
Then I should see "Norway's constitution"
And I should see "2009-02-20 15:10:00 UTC"
And I should see "2015-02-20 15:10:00 UTC"
"""
When I run `bundle exec rake db:migrate`
Expand Down
17 changes: 17 additions & 0 deletions gemfiles/rails_4_2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rails", "~> 4.2.1"
gem "railties", "~> 4.2.1"
gem "capybara", "~> 2.4.4"
gem "selenium-webdriver", "~> 2.0"
gem "rspec-rails", "~> 3.1.0"
gem "sass-rails", "~> 5.0"
gem "coffee-rails", "~> 4.1.0"
gem "jquery-rails"
gem "uglifier", "~> 2.1.0"
gem "sqlite3", "~> 1.3.7"
gem "database_cleaner", "~> 1.0.1"

gemspec :path => "../"

0 comments on commit b043508

Please sign in to comment.