We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b18bbe commit 6859dfeCopy full SHA for 6859dfe
spec/generators/rspec/mailer/mailer_generator_spec.rb
@@ -56,6 +56,16 @@
56
it { is_expected.to exist }
57
it { is_expected.to contain(/class PostsPreview < ActionMailer::Preview/) }
58
it { is_expected.to contain(/def index/) }
59
+ if Rails.version.to_f >= 5.0
60
+ it { is_expected.to contain(/PostsMailer.index/) }
61
+ else
62
+ it { is_expected.to contain(/Posts.index/) }
63
+ end
64
it { is_expected.to contain(/def show/) }
65
66
+ it { is_expected.to contain(/PostsMailer.show/) }
67
68
+ it { is_expected.to contain(/Posts.show/) }
69
70
end
71
0 commit comments