Minor fix for Example #307

Closed
wants to merge 1 commit into
from
@@ -18,9 +18,11 @@ def c.escaped_path(*parts)
c.include RSpec::Rails::HelperExampleGroup, :type => :helper, :example_group => {
:file_path => c.escaped_path(%w[spec helpers])
}
- c.include RSpec::Rails::MailerExampleGroup, :type => :mailer, :example_group => {
- :file_path => c.escaped_path(%w[spec mailers])
- }
+ if defined?(RSpec::Rails::MailerExampleGroup)
+ c.include RSpec::Rails::MailerExampleGroup, :type => :mailer, :example_group => {
+ :file_path => c.escaped_path(%w[spec mailers])
+ }
+ end
c.include RSpec::Rails::ModelExampleGroup, :type => :model, :example_group => {
:file_path => c.escaped_path(%w[spec models])
}