mirror of
https://github.com/thoughtbot/factory_bot_rails.git
synced 2022-11-09 11:49:18 -05:00
Support yardoc
This commit renames the .rb template to .erb. With it renamed, yardoc won't try and parse the file (which was causing the install to break). Closes #52
This commit is contained in:
parent
6027f8dbf6
commit
a6ccbcb9f6
2 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ module FactoryGirl
|
|||
class_option :dir, :type => :string, :default => "test/factories", :desc => "The directory where the factories should go"
|
||||
|
||||
def create_fixture_file
|
||||
template 'fixtures.rb', File.join(options[:dir], "#{table_name}.rb")
|
||||
template 'fixtures.erb', File.join(options[:dir], "#{table_name}.rb")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue