paulelliott/fabrication-site — Issue #6: Update Rails configuration instructions on the website
Author: alistairholt
Created: 2011-12-18 14:36:29+00:00
State: open

Using Rails 3.1.3 and test/unit the following syntax from the Fabrication site no longer works:

config.generators do |g|
g.fixture_replacement :fabrication, :dir => "test/fabricators"
end

To get things to work properly I'm having to use the following config:

config.generators do |g|
g.test_framework :test_unit, :fixture_replacement => :fabrication
g.fixture_replacement :fabrication, :dir => "test/fabricators"
end

I'm not 100% sure this is exactly the right way to specify the config but it seems to be the only way to get it working in Rails 3.1.3.