Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow both test_unit and mini_test as well as rspec

  • Loading branch information...
commit 95fc61bf4d9d51e4944224e5c78166ddc3fd44d3 1 parent f605259
Umur Ozkul authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/factory_girl_rails/railtie.rb
View
4 lib/factory_girl_rails/railtie.rb
@@ -9,9 +9,11 @@ class Railtie < Rails::Railtie
if generators.options[:rails][:test_framework] == :rspec
generators.fixture_replacement :factory_girl, :dir => 'spec/factories'
- else
+ elsif generators.options[:rails][:test_framework] == :mini_test
generators.test_framework :mini_test, :spec => true, :fixture => false,
:fixture_replacement => :factory_girl
+ else
+ generators.test_framework :test_unit, :fixture => false, :fixture_replacement => :factory_girl
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.