Setup an already RSpec application to use Rails Fixtures
Used 12 times
P
Pedro Carmona
Usage
Setups rspec to easily use rails fixtures
Run this command in your Rails app directory in the terminal:
rails app:template LOCATION="https://www.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.*/
)