Created
June 7, 2010 10:06
-
-
Save airblade/428491 to your computer and use it in GitHub Desktop.
This file contains 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
Then /^(?:I|they) should see the email delivered from "([^"]*?)"$/ do |text| | |
#current_email.should be_delivered_from(text) | |
should_be_delivered_from(text) | |
end |
This file contains 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
10:59:28.47 | Executing: sh -c "./script/cucumber features/new-story.feature" | |
uninitialized constant Shoulda::Assertions (NameError) | |
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:440:in `load_missing_constant' | |
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:in `const_missing' | |
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/action_controller.rb:20 | |
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' | |
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' | |
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:in `require' | |
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/rails.rb:6 | |
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' | |
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' | |
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:in `require' | |
/Users/andy/moda/features/support/env.rb:24 | |
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' | |
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' | |
/Library/Ruby/Gems/1.8/gems/cucumber-0.7.3/bin/../lib/cucumber/rb_support/rb_language.rb:119:in `load_code_file' | |
/Library/Ruby/Gems/1.8/gems/cucumber-0.7.3/lib/cucumber/step_mother.rb:84:in `load_code_file' | |
/Library/Ruby/Gems/1.8/gems/cucumber-0.7.3/lib/cucumber/step_mother.rb:76:in `load_code_files' | |
/Library/Ruby/Gems/1.8/gems/cucumber-0.7.3/lib/cucumber/step_mother.rb:75:in `each' | |
/Library/Ruby/Gems/1.8/gems/cucumber-0.7.3/lib/cucumber/step_mother.rb:75:in `load_code_files' | |
/Library/Ruby/Gems/1.8/gems/cucumber-0.7.3/lib/cucumber/cli/main.rb:53:in `execute!' | |
/Library/Ruby/Gems/1.8/gems/cucumber-0.7.3/lib/cucumber/cli/main.rb:25:in `execute' | |
/Library/Ruby/Gems/1.8/gems/cucumber-0.7.3/bin/cucumber:8 | |
./script/cucumber:9:in `load' | |
./script/cucumber:9 |
This file contains 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
require 'email_spec/cucumber' | |
require 'shoulda' | |
require 'shoulda/rails' | |
module EmailSpec | |
module Macros | |
include Helpers | |
include Matchers | |
def should_be_delivered_from(email) | |
matcher = be_delivered_from(email) | |
should matcher.description do | |
assert_accepts matcher, current_email | |
end | |
end | |
end | |
end | |
World(EmailSpec::Macros) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment