diff --git a/Gemfile b/Gemfile index 3ede96cce..4c37d5ea1 100644 --- a/Gemfile +++ b/Gemfile @@ -59,3 +59,7 @@ group :test do gem 'coveralls', require: false end +group :test do + gem 'email_spec' +end + diff --git a/Gemfile.lock b/Gemfile.lock index bdeda8b6e..62be9aa71 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -114,6 +114,9 @@ GEM json thread thread_safe + email_spec (1.6.0) + launchy (~> 2.1) + mail (~> 2.2) erubis (2.7.0) execjs (2.5.2) factory_girl (4.5.0) @@ -305,6 +308,7 @@ DEPENDENCIES coveralls database_cleaner devise + email_spec factory_girl_rails foundation-rails i18n-tasks diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 156073f78..5a6bb5fcc 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,5 +1,6 @@ require 'factory_girl_rails' require 'database_cleaner' +require "email_spec" RSpec.configure do |config| config.use_transactional_fixtures = false @@ -7,7 +8,8 @@ RSpec.configure do |config| config.filter_run :focus config.run_all_when_everything_filtered = true config.include FactoryGirl::Syntax::Methods - + config.include(EmailSpec::Helpers) + config.include(EmailSpec::Matchers) config.before(:suite) do DatabaseCleaner.clean_with :truncation end