Skip to content

Commit

Permalink
Merge pull request sporkrb#127 from stepheneb/fix-cucumber-rails-inte…
Browse files Browse the repository at this point in the history
…gration

fix cucumber-rails integration and feature test
  • Loading branch information
timcharper committed Jun 29, 2011
2 parents 817e8ad + e72c77b commit 40c5962
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
source :gemcutter
gem 'cucumber', '0.10.2'
gem 'cucumber', '~> 1.0.0'
gem 'rspec', '~> 2.6'
gem 'rake'

Expand Down
10 changes: 5 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ GEM
archive-tar-minitar (0.5.2)
builder (3.0.0)
columnize (0.3.2)
cucumber (0.10.2)
cucumber (1.0.0)
builder (>= 2.1.2)
diff-lcs (>= 1.1.2)
gherkin (>= 2.3.5)
gherkin (~> 2.4.1)
json (>= 1.4.6)
term-ansicolor (>= 1.0.5)
diff-lcs (1.1.2)
gherkin (2.3.7)
gherkin (2.4.1)
json (>= 1.4.6)
json (1.5.1)
json (1.5.3)
linecache19 (0.5.12)
ruby_core_source (>= 0.1.4)
rake (0.8.7)
Expand Down Expand Up @@ -41,7 +41,7 @@ PLATFORMS
ruby

DEPENDENCIES
cucumber (= 0.10.2)
cucumber (~> 1.0.0)
rake
rspec (~> 2.6)
ruby-debug19
4 changes: 2 additions & 2 deletions features/gemfiles/rails3.0/Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source :gemcutter
gem 'sqlite3-ruby', '1.2.5'
gem 'cucumber', '0.10.2'
gem 'cucumber-rails', '0.4.1'
gem 'cucumber', '~> 1.0.0'
gem 'cucumber-rails', '~> 1.0.0'
gem "rspec", "2.5.0"
gem 'rspec-rails', "2.5.0"
gem 'rails', '3.0.7'
Expand Down
4 changes: 2 additions & 2 deletions lib/spork/test_framework/cucumber.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class << self

def preload
require 'cucumber'
if ::Cucumber::VERSION >= '0.9.0'
if ::Cucumber::VERSION >= '0.9.0' && ::Cucumber::VERSION < '1.0.0'
# nothing to do nowadays
else
preload_legacy_cucumbers
Expand All @@ -18,7 +18,7 @@ def preload
end

def run_tests(argv, stderr, stdout)
if ::Cucumber::VERSION >= '0.9.0'
if ::Cucumber::VERSION >= '0.9.0' && ::Cucumber::VERSION < '1.0.0'
::Cucumber::Cli::Main.new(argv, stdout, stderr).execute!
else
::Cucumber::Cli::Main.new(argv, stdout, stderr).execute!(@step_mother)
Expand Down

0 comments on commit 40c5962

Please sign in to comment.