diff --git a/lib/generators/rspec/templates/policy_spec.rb b/lib/generators/rspec/templates/policy_spec.rb index 80abde8..1a4510f 100644 --- a/lib/generators/rspec/templates/policy_spec.rb +++ b/lib/generators/rspec/templates/policy_spec.rb @@ -1,4 +1,4 @@ -require 'spec_helper' +require '<%= File.exists?('spec/rails_helper.rb') ? 'rails_helper' : 'spec_helper' %>' describe <%= class_name %>Policy do