diff --git a/features/step_definitions/steps.rb b/features/step_definitions/steps.rb index aff61cc..073a0e3 100644 --- a/features/step_definitions/steps.rb +++ b/features/step_definitions/steps.rb @@ -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