Skip to content

Commit

Permalink
added gem's matchers
Browse files Browse the repository at this point in the history
  • Loading branch information
kucaahbe committed Oct 20, 2011
1 parent 1169756 commit be776e1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions features/step_definitions/steps.rb
Expand Up @@ -9,9 +9,19 @@
end

Then /^I should be able to match static content$/ do
# capybara:
page.should have_content('Hello World!')
page.should have_css('h1')

# rspec2 matchers:
page.should have_tag('h1', :text => 'Hello World!')
end

Then /^I should be able to match javascript generated content$/ do
# capybara:
page.should have_content('Hello Another World!')
page.should have_css('p')

# rspec2 matchers:
page.should have_tag('p', :text => 'Hello Another World!')
end

0 comments on commit be776e1

Please sign in to comment.