Created
March 18, 2010 03:42
-
-
Save bdmac/336021 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scenario: Signup page - logged out # features/signup.feature:7 | |
Given I am not logged in # features/step_definitions/signup_steps.rb:1 | |
When I visit the signup page # features/step_definitions/signup_steps.rb:4 | |
Then I should see the signup page # features/step_definitions/signup_steps.rb:8 | |
WORLD: | |
Cucumber::Rails::World | |
WithinHelpers | |
NavigationHelpers | |
Capybara | |
Cucumber::Web::Tableish | |
Cucumber::RbSupport::RbWorld | |
ActionDispatch::Integration::Runner | |
ActiveRecord::TestFixtures | |
ActiveSupport::Testing::Pending | |
ActiveSupport::Testing::Deprecation | |
ActiveSupport::Testing::Assertions | |
ActiveSupport::Testing::SetupAndTeardown::ForClassicTestUnit | |
ActiveSupport::Callbacks | |
ActiveSupport::Testing::SetupAndTeardown | |
ActiveSupport::Testing::Default | |
Test::Unit::Util::BacktraceFilter | |
Test::Unit::Assertions | |
Test::Unit::Priority | |
Test::Unit::NotificationHandler | |
Test::Unit::TestCaseNotificationSupport | |
Test::Unit::OmissionHandler | |
Test::Unit::TestCaseOmissionSupport | |
Test::Unit::PendingHandler | |
Test::Unit::TestCasePendingSupport | |
Test::Unit::FailureHandler | |
Test::Unit::ErrorHandler | |
Test::Unit::ExceptionHandler | |
Test::Unit::Fixture | |
Test::Unit::Attribute | |
JSON::Ext::Generator::GeneratorMethods::Object | |
ActiveSupport::Dependencies::Loadable | |
Arel::Sql::ObjectExtensions | |
Arel::ObjectExtensions | |
Kernel | |
undefined method `have_content' for #<Cucumber::Rails::World:0x2365782> (NoMethodError) | |
./features/step_definitions/signup_steps.rb:14:in `/^I should see the signup page$/' | |
features/signup.feature:10:in `Then I should see the signup page' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scenario: Signup page - logged out | |
Given I am not logged in | |
When I visit the signup page | |
Then I should see the signup page |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When /^I visit the signup page$/ do | |
visit signup_path | |
end | |
Then /^I should see the signup page$/ do | |
announce "WORLD:\n #{self.class}" | |
world = self | |
(class << self; self; end).instance_eval do | |
world.announce " #{included_modules.join("\n ")}" | |
end | |
page.should have_content("#signup") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment