Skip to content

Instantly share code, notes, and snippets.

@Heavyblade
Created August 30, 2013 15:37
Show Gist options
  • Select an option

  • Save Heavyblade/6391118 to your computer and use it in GitHub Desktop.

Select an option

Save Heavyblade/6391118 to your computer and use it in GitHub Desktop.
module Offmarket
class Application < Rails::Application
# don't generate RSpec tests for views and helpers
config.generators do |g|
g.test_framework :rspec, fixture: true
g.fixture_replacement :factory_girl, dir: 'spec/factories'
g.view_specs false
g.helper_specs false
end
@cored

cored commented Aug 30, 2013

Copy link
Copy Markdown

Seems good, but I rather prefer not to generate tests/specs for everything. I prefer to do all the configuration myself. So I go like rails -T and start from there adding the test/spec framework and directory structure that I like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment