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 5916abcCopy full SHA for 5916abc
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
63
+ end
64
it { is_expected.to contain(/def show/) }
65
66
+ it { is_expected.to contain(/PostsMailer.show/) }
67
68
69
70
end
71
0 commit comments