Configure test frameworks and fixture replacements in rails
If you want to use another test framework for rails like rspec and factories instead of fixtures. You should adapt config/application.rb
as follows:
config.generators do |g|
g.test_framework :rspec # Use RSpec as testing framework.
g.fallbacks[:rspec] = :test_unit # Fallback to Test-Unit if RSpec is not available.
g.fixture_replacement :factory_girl # Use FactoryGirl instead of fixtures.
end
Written by Jens Grassel
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#