Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

include factory_girl syntax sugar in minitest spec

  • Loading branch information...
commit 6e7b581eb975781ecefcc421e9153d637ee60377 1 parent 077e87c
@phlipper phlipper authored
View
3  lib/generators/thincloud/test/templates/factory_girl.rb
@@ -0,0 +1,3 @@
+class MiniTest::Spec
+ include FactoryGirl::Syntax::Methods
+end
View
1  lib/generators/thincloud/test/test_generator.rb
@@ -15,6 +15,7 @@ def test
remove_file "test/minitest_helper.rb"
copy_file "minitest_helper.rb", "test/minitest_helper.rb"
+ copy_file "factory_girl.rb", "test/support/factory_girl.rb"
copy_file "database_cleaner.rb", "test/support/database_cleaner.rb"
copy_file "test.rake", "lib/tasks/test.rake"
Please sign in to comment.
Something went wrong with that request. Please try again.