Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update to work with latest spinach

  • Loading branch information...
commit 8d51eb2635c91c51e5aa4a3758de06343ab77ade 1 parent e7a599b
@josepjaume josepjaume authored
Showing with 14 additions and 15 deletions.
  1. +11 −12 Gemfile.lock
  2. +2 −2 features/steps/test.rb
  3. +1 −1  features/support/env.rb
View
23 Gemfile.lock
@@ -12,32 +12,31 @@ GEM
ffi (~> 1.0.6)
colorize (0.5.8)
ffi (1.0.9)
- gherkin (2.5.1)
+ gherkin (2.5.4)
json (>= 1.4.6)
- hooks (0.2.0)
json (1.6.1)
json_pure (1.6.1)
mime-types (1.16)
- minitest (2.6.1)
nokogiri (1.5.0)
- rack (1.3.3)
+ rack (1.3.5)
+ rack-protection (1.1.4)
+ rack
rack-test (0.6.1)
rack (>= 1.0)
rake (0.9.2)
rubyzip (0.9.4)
- selenium-webdriver (2.7.0)
+ selenium-webdriver (2.9.1)
childprocess (>= 0.2.1)
- ffi (>= 1.0.7)
+ ffi (= 1.0.9)
json_pure
rubyzip
- sinatra (1.2.6)
- rack (~> 1.1)
- tilt (>= 1.2.2, < 2.0)
- spinach (0.1.0)
+ sinatra (1.3.1)
+ rack (>= 1.3.4, ~> 1.3)
+ rack-protection (>= 1.1.2, ~> 1.1)
+ tilt (>= 1.3.3, ~> 1.3)
+ spinach (0.1.5.2)
colorize
gherkin
- hooks
- minitest
tilt (1.3.3)
xpath (0.1.4)
nokogiri (~> 1.3)
View
4 features/steps/test.rb
@@ -1,5 +1,4 @@
-class Test < Spinach::Feature
- feature "Application test"
+class ApplicationTest < Spinach::FeatureSteps
Given "I am on the front page" do
visit '/'
@@ -16,4 +15,5 @@ class Test < Spinach::Feature
Then "I should see goodbye" do
page.has_content?("Goodbye").must_equal true
end
+
end
View
2  features/support/env.rb
@@ -1,5 +1,5 @@
require_relative '../../app'
require 'spinach/capybara'
-Spinach::Feature.send(:include, Spinach::Feature::Capybara)
+Spinach::FeatureSteps.send(:include, Spinach::FeatureSteps::Capybara)
Capybara.app = Sinatra::Application
Please sign in to comment.
Something went wrong with that request. Please try again.