From 3d31e97a57e25f87e811fb79af091858090a7640 Mon Sep 17 00:00:00 2001 From: "y@su" Date: Wed, 10 Sep 2014 15:43:52 +0900 Subject: [PATCH] Update rspec generator to case when rails_helper.rb exists --- lib/generators/rspec/templates/policy_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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