Skip to content

Commit 5beb63e

Browse files
committed
Enable email_spec helpers+matchers for all specs
email_spec was being added to specs of type :mailer, :feature, and :job. I also needed it in :request specs, so that would have brought the total to 4 spec types being mentioned in the config for email_spec, and this would likely grow in the future. Now including email_spec in all spec types so its there when its needed. Devs using this config in their own projects will not be tripped up by email_spec not being available in some specs. As a bonus, this fixes eliotsykes#45 "Fix email_spec.rb duplicate :type key warnings"[0] [0] eliotsykes#45
1 parent 14117fc commit 5beb63e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/support/email_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
RSpec.configure do |config|
1515

16-
config.include EmailSpec::Helpers, [type: :mailer, type: :feature, type: :job]
17-
config.include EmailSpec::Matchers, [type: :mailer, type: :feature, type: :job]
16+
config.include EmailSpec::Helpers
17+
config.include EmailSpec::Matchers
1818

1919
config.before(:each) do
2020
reset_mailer # Clears out ActionMailer::Base.deliveries

0 commit comments

Comments
 (0)