Skip to content

Instantly share code, notes, and snippets.

@slowjud
Forked from benaskins/feature
Created April 9, 2009 02:58
Show Gist options
  • Save slowjud/92201 to your computer and use it in GitHub Desktop.
Save slowjud/92201 to your computer and use it in GitHub Desktop.
Scenario: Visit the local conditions page for a location where conditions are available
Given I have a demonstration site
And the web service knows about "Sydney, NSW"
When I visit "/weather/local-conditions/nsw/sydney"
Then I should see "Sydney current conditions"
And I should see a "Dew point" value of "14"
Then /^I should see a "(\S+)" value of "(\S+)"$/ do |label, value|
response.should =~ /<dt>#{label}<\/dt>\s*<dd>#{value}<\/dd>/
end
wrong number of arguments (1 for 0) (ArgumentError)
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pp.rb:258:in `method'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pp.rb:258:in `pretty_print'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pp.rb:140:in `pp'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/prettyprint.rb:201:in `group'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/prettyprint.rb:227:in `nest'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/prettyprint.rb:200:in `group'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/prettyprint.rb:212:in `group_sub'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/prettyprint.rb:199:in `group'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pp.rb:140:in `pp'
...
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pp.rb:140:in `pp'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pp.rb:77:in `pp'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pp.rb:119:in `guard_inspect_key'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pp.rb:77:in `pp'
./features/step_definitions/common_steps.rb:18:in `/^I should see a "([^\"]*)" value of "([^\"]*)"$/'
features/check_weather.feature:32:in `And I should see a "Dew point" value of "14"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment