Skip to content

Instantly share code, notes, and snippets.

@dperrymorrow
Created June 11, 2014 02:04
Show Gist options
  • Save dperrymorrow/7e4973f5185c40192e96 to your computer and use it in GitHub Desktop.
Save dperrymorrow/7e4973f5185c40192e96 to your computer and use it in GitHub Desktop.
Rails generators to use RSpec and FactoryGirl
config.generators do |g|
g.test_framework(
:rspec,
{
:fixtures => true,
:view_specs => false,
:helper_specs => false,
:routing_specs => false,
:controller_specs => true,
:request_specs => true
}
)
g.fixture_replacement :factory_girl, :dir => "spec/factories"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment