Permalink
Browse files

Fix step definition missing RSpec matcher.

  • Loading branch information...
glennpratt committed Oct 19, 2012
1 parent 6d1814c commit 1caadd0c21b35ccbf34401c4c10425023bdd8a41
Showing with 4 additions and 2 deletions.
  1. +1 −0 Gemfile
  2. +1 −2 tests/bakery/features/step_definitions/common_steps.rb
  3. +2 −0 tests/bakery/features/support/env.rb
View
@@ -1,4 +1,5 @@
source "http://rubygems.org"
gem "capybara"
gem "cucumber"
+gem "rspec"
gem "poltergeist"
@@ -86,6 +86,5 @@
end
Then /^I should not see a link containing the text "(.*?)"$/ do |text|
- #!find_link(text).visible?
- page.should_not have_content(text)
+ page.should have_no_content(text)
end
@@ -1,8 +1,10 @@
puts "loading env.rb"
+
require 'capybara'
require 'capybara/dsl'
require "capybara/cucumber"
require 'capybara/poltergeist'
+begin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end
Capybara.default_driver = :poltergeist

0 comments on commit 1caadd0

Please sign in to comment.