RSpec Rails Fixtures

Public
Setup an already RSpec application to use Rails Fixtures
Icons/chart bar
Used 12 times
Created by
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://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.*/
)

  
Comments

Sign up or Login to leave a comment.