Skip to content

Commit

Permalink
Update rspec generator to case when rails_helper.rb exists
Browse files Browse the repository at this point in the history
  • Loading branch information
yatmsu committed Sep 10, 2014
1 parent d09f8ae commit 3d31e97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/rspec/templates/policy_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'spec_helper'
require '<%= File.exists?('spec/rails_helper.rb') ? 'rails_helper' : 'spec_helper' %>'

describe <%= class_name %>Policy do

Expand Down

0 comments on commit 3d31e97

Please sign in to comment.