Skip to content

Instantly share code, notes, and snippets.

@code-later
Created December 2, 2011 12:05
Show Gist options
  • Save code-later/1423009 to your computer and use it in GitHub Desktop.
Save code-later/1423009 to your computer and use it in GitHub Desktop.
A spec_helper to run your specs without Rails but blazing fast!
ENV["RAILS_ENV"] ||= 'test'
if defined?(Bundler)
Bundler.setup(*%w(development test))
end
require 'rspec'
require 'renum'
require 'active_model'
require 'app/models/enum_extension'
require 'app/models/booking_types'
require 'app/models/currencies'
require 'app/models/payment_options'
require 'app/models/countries'
require 'app/models/languages'
require 'app/models/cities'
RSpec.configure do |config|
config.mock_with :rspec
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment