1
0
Fork 0
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:
Joshua Clayton 2012-03-30 10:22:56 -04:00
parent 6027f8dbf6
commit a6ccbcb9f6
2 changed files with 1 additions and 1 deletions

View file

@ -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