Skip to content

Existing mailer previews are no longer available after updating to rspec-rails 3.2.1 #1333

Open
@cupakromer

Description

@cupakromer

Issue

Existing mailer previews are no longer accessible after updating to rspec-rails 3.2.1.

This was reported in #1313 (comment)

Root Cause

This issue affects projects which previously created mailer previews, either manually, or with the Minitest hook into the default test/mailers/previews location. Since that was the default path, it is not likely those projects added an explicit path to the config. After updating, rspec-rails now sets it's path spec/mailers/previews if no explicit path has been configured. So the old previews are no longer in the path.

Workaround

Set an explicit preview path in the config:

config.action_mailer.preview_path = 'test/mailers/previews'

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions