Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supporting minitest #68

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -30,6 +30,12 @@ Configuration
Add factory_girl_rails to your Gemfile: Add factory_girl_rails to your Gemfile:


gem 'factory_girl_rails' 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 Cucumber Integration
-------------------- --------------------
Expand Down
2 changes: 1 addition & 1 deletion factory_girl_rails.gemspec
Expand Up @@ -22,5 +22,5 @@ Gem::Specification.new do |s|
s.add_development_dependency('rspec', '~> 2.6.0') s.add_development_dependency('rspec', '~> 2.6.0')
s.add_development_dependency('cucumber', '~> 1.0.0') s.add_development_dependency('cucumber', '~> 1.0.0')
s.add_development_dependency('aruba') s.add_development_dependency('aruba')
s.add_development_dependency('rails', '3.0.7') s.add_development_dependency('rails', '>= 3.0.7')
end end
2 changes: 1 addition & 1 deletion lib/factory_girl_rails/railtie.rb
Expand Up @@ -10,7 +10,7 @@ class Railtie < Rails::Railtie
if generators.options[:rails][:test_framework] == :rspec if generators.options[:rails][:test_framework] == :rspec
generators.fixture_replacement :factory_girl, :dir => 'spec/factories' generators.fixture_replacement :factory_girl, :dir => 'spec/factories'
else else
generators.test_framework :test_unit, :fixture => false, :fixture_replacement => :factory_girl generators.fixture_replacement :factory_girl
end end
end end


Expand Down