Supporting minitest #68

Closed
wants to merge 8 commits into
from
View
@@ -30,6 +30,12 @@ Configuration
Add factory_girl_rails to your Gemfile:
gem 'factory_girl_rails'
+
+If you are not using rspec then configure your test generator in config/application.rb. For example, to enable MiniTest with Factory, you would add
+
+ config.generators do |g|
+ g.test_framework :mini_test, :spec => true, :fixture=>false, :fixture_replacement=>:factory_girl
+ end
Cucumber Integration
--------------------
@@ -22,5 +22,5 @@ Gem::Specification.new do |s|
s.add_development_dependency('rspec', '~> 2.6.0')
s.add_development_dependency('cucumber', '~> 1.0.0')
s.add_development_dependency('aruba')
- s.add_development_dependency('rails', '3.0.7')
+ s.add_development_dependency('rails', '>= 3.0.7')
end
@@ -10,7 +10,7 @@ class Railtie < Rails::Railtie
if generators.options[:rails][:test_framework] == :rspec
generators.fixture_replacement :factory_girl, :dir => 'spec/factories'
else
- generators.test_framework :test_unit, :fixture => false, :fixture_replacement => :factory_girl
+ generators.fixture_replacement :factory_girl
end
end