Sha256: d970e9208369a5fdc42df70da34539dc10bfcb482a3faa843e867f0fc357afb0

Contents?: true

Size: 1.7 KB

Versions: 15

Compression:

Stored size: 1.7 KB

Contents

When /^I visit the home page$/ do
  visit "/"
end

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wally-0.0.16 features/step_definitions/browse_features_steps.rb
wally-0.0.15 features/step_definitions/browse_features_steps.rb
wally-0.0.14 features/step_definitions/browse_features_steps.rb
wally-0.0.13 features/step_definitions/browse_features_steps.rb
wally-0.0.12 features/step_definitions/browse_features_steps.rb
wally-0.0.11 features/step_definitions/browse_features_steps.rb
wally-0.0.10 features/step_definitions/browse_features_steps.rb
wally-0.0.9 features/step_definitions/browse_features_steps.rb
wally-0.0.8 features/step_definitions/browse_features_steps.rb
wally-0.0.7 features/step_definitions/browse_features_steps.rb
wally-0.0.6 features/step_definitions/browse_features_steps.rb
wally-0.0.5 features/step_definitions/browse_features_steps.rb
wally-0.0.3 features/step_definitions/browse_features_steps.rb
wally-0.0.2 features/step_definitions/browse_features_steps.rb
wally-0.0.1 features/step_definitions/browse_features_steps.rb