Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
psantos10 committed Feb 23, 2024
1 parent adfdd87 commit c53a51f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/generators/rspec/mailer/mailer_generator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
setup_default_destination

describe 'mailer spec' do
subject(:filename) { file('spec/mailers/posts_spec.rb') }
subject(:filename) { file('spec/mailers/posts_mailer_spec.rb') }

describe 'a spec is created for each action' do
before do
Expand Down Expand Up @@ -66,13 +66,13 @@
run_generator %w[posts index show]
end

subject(:filename) { file('spec/mailers/previews/posts_preview.rb') }
subject(:filename) { file('spec/mailers/previews/posts_mailer_preview.rb') }

it "includes the standard boilerplate" do
expect(
filename
).to(
contain(/class PostsPreview < ActionMailer::Preview/)
contain(/class PostsMailerPreview < ActionMailer::Preview/)
.and(contain(/def index/))
.and(contain(/PostsMailer.index/))
.and(contain(/def show/))
Expand Down

0 comments on commit c53a51f

Please sign in to comment.