Sha256: 2df9f42591db60a6b72fcd43c4175a096bcaaa5275d36bf4f7a7514e534dc4eb
Contents?: true
Size: 1.74 KB
Versions: 2
Compression:
Stored size: 1.74 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 "Scenario: 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wally-0.0.19 | features/step_definitions/browse_features_steps.rb |
wally-0.0.18 | features/step_definitions/browse_features_steps.rb |