diff --git a/lib/generators/rspec/templates/decorator_spec.rb b/lib/generators/rspec/templates/decorator_spec.rb index 6acbd52..e15e832 100644 --- a/lib/generators/rspec/templates/decorator_spec.rb +++ b/lib/generators/rspec/templates/decorator_spec.rb @@ -1,4 +1,9 @@ -require 'spec_helper' +<% if RSpec::Rails::Version::STRING.match(/\A3\.[^10]/) %> + require 'rails_helper' +<% else %> + require 'spec_helper' +<% end %> describe <%= class_name %>Decorator do + end