Skip to content

Instantly share code, notes, and snippets.

@irmiller22
Last active August 29, 2015 13:56
Show Gist options
  • Save irmiller22/9044375 to your computer and use it in GitHub Desktop.
Save irmiller22/9044375 to your computer and use it in GitHub Desktop.
RSpec Testing for Rails

Setting up RSpec-Rails

Generate RSpec testing

rails g rspec:install

config/applications.rb

config.generators do |g| g.test_framework :rspec, fixtures: true, view_specs: false, helper_specs: false, routing_specs: false, controller_specs: true, request_specs: false 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