Sha256: e623fe6ab7a1f8eef73733209df0ed4f9721d8f15af0484d4dd0d4fe6b087187
Contents?: true
Size: 1.73 KB
Versions: 6
Compression:
Stored size: 1.73 KB
Contents
Then /^I should see a link to my sample features$/ do page.should have_link "Kate Moss", :href => "/features/kate-moss" page.should have_link "Katie Price", :href => "/features/katie-price" page.should have_link "Jessica-Jane Clement", :href => "/features/jessica-jane-clement" page.should have_link "Elle Macpherson", :href => "/features/elle-macpherson" end When /^I visit the sample feature page$/ do visit "/features/sample-feature" end Then /^I should see the feature free\-form narrative$/ do page.should have_content "In order to get some value" page.should have_content "As a person" page.should have_content "I want to create value" end Then /^I should see Scenario headers as links$/ do page.body.should have_content "Scenarios" page.should have_link "Sample Aidy", :href => "/features/sample-feature/scenario/sample-aidy" page.should have_link "Sample Andrew", :href => "/features/sample-feature/scenario/sample-andrew" end When /^click on a scenario header link$/ do page.click_link "Sample Aidy" end Then /^a page appears with the scenario content$/ do page.body.should have_content "Sample Aidy" page.body.should have_content "Given my name is \"Aidy\"" page.body.should have_content "When I drink alcohol" page.body.should have_content "Then I go nuts" end Then /^the background is visible$/ do page.body.should have_content "Background:" page.body.should have_content "Given some things" end Then /^the scenario links are sorted$/ do page.body.should =~ /C.*I.*N.*V/m end Then /^the features are ordered alphabetically$/ do page.body.should =~ /Elle Macpherson.*Jessica-Jane Clement.*Kate Moss.*Katie Price/m end Then /^I should see a heading "([^"]*)"$/ do |text| page.body.should have_content text end
Version data entries
6 entries across 6 versions & 1 rubygems