Skip to content

Instantly share code, notes, and snippets.

@namick
Created January 30, 2012 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save namick/1701537 to your computer and use it in GitHub Desktop.
Save namick/1701537 to your computer and use it in GitHub Desktop.
spec helper for plugin with dummy app
# Configure Rails Environment
ENV["RAILS_ENV"] = "test"
require File.expand_path("../dummy/config/environment.rb", __FILE__)
require 'rspec/rails'
Rails.backtrace_cleaner.remove_silencers!
# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
RSpec.configure do |config|
config.use_transactional_fixtures = true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment