Created
January 30, 2012 00:19
-
-
Save namick/1701537 to your computer and use it in GitHub Desktop.
spec helper for plugin with dummy app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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