Skip to content

Commit

Permalink
Merge pull request #208 from yatmsu/rails_helper
Browse files Browse the repository at this point in the history
Update rspec generator to case when rails_helper.rb exists
  • Loading branch information
jnicklas committed Sep 24, 2014
2 parents d09f8ae + 3d31e97 commit 2214acf
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 2214acf

Please sign in to comment.