1
0
Fork 0
mirror of https://github.com/varvet/pundit.git synced 2022-11-09 12:30:11 -05:00

Update rspec generator to case when rails_helper.rb exists

This commit is contained in:
y@su 2014-09-10 15:43:52 +09:00
parent d09f8aed7e
commit 3d31e97a57

View file

@ -1,4 +1,4 @@
require 'spec_helper'
require '<%= File.exists?('spec/rails_helper.rb') ? 'rails_helper' : 'spec_helper' %>'
describe <%= class_name %>Policy do