Setup an already RSpec application to use Rails Fixtures
Used 51 times
Usage
Setups rspec to easily use rails fixtures
Run this command in your Rails app directory in the terminal:
rails app:template LOCATION="https://railsbytes.com/script/V2GsW9"
Template Source
Review the code before running this template on your machine.
insert_into_file(
"spec/rails_helper.rb",
"\n config.global_fixtures = :all",
:after => /config.fixture_path.*/
)