You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
himynameisjonas edited this page May 27, 2011
·
7 revisions
Rails 3
In your app’s Gemfile, in the group :test section, add:
gem 'machinist', '>= 2.0.0.beta2'
Then run:
bundle install
rails generate machinist:install
If you want Machinist to automatically add a blueprint to your blueprints file whenever you generate a model, add the following to your config/application.rb in the config.generators section:
g.fixture_replacement :machinist
Rails 2
First, install the Machinist 2 gem:
gem install machinist --pre
…with RSpec
Create a blueprints.rb file to hold your blueprints in your spec/support directory. It should start with:
require 'machinist/active_record'
In your spec/spec_helper.rb, add this inside the Spec::Runner.configure block: