I am going through this User Authentication tutorial..
http://larsgebhardt.de/user-authentication-with-ruby-on-rails-rspec-and-capybara/
..which uses the gem 'email_spec'. Granted the author is using an earlier version of rails and rspec, I am having issues getting the gem to work properly.
When adding..
spec_helper.rb
RSpec.configure do |config|
...
config.include(EmailSpec::Helpers)
config.include(EmailSpec::Matchers)
...
end
I receive the error..
Neither Pony nor ActionMailer appear to be loaded so email-spec is requiring ActionMailer.
WARN: Unresolved specs during Gem::Specification.reset:
minitest (~> 5.1)
rack-test (~> 0.6.2)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
I can still see the expected test failures so I continued, but once I got to the part where it had me add config.include(UserHelper)
to the spec_helper, the gem or test suite broke.
This side of rails and rspec is a little over my head. Any help is highly appreciated.
I am currently running Rails 4.1.6 and Rspec 3.1.7.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…