This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/spec/spec_helper.rb

28 lines
978 B
Ruby
Raw Normal View History

2011-04-13 11:02:18 +00:00
# This file is copied to spec/ when you run 'rails generate rspec:install'
2010-01-04 08:08:50 +00:00
ENV["RAILS_ENV"] ||= 'test'
2011-04-13 11:02:18 +00:00
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
2010-01-04 08:08:50 +00:00
2011-04-13 11:02:18 +00:00
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
2010-01-04 08:08:50 +00:00
2011-04-13 11:02:18 +00:00
RSpec.configure do |config|
2010-01-04 08:08:50 +00:00
# == Mock Framework
#
2011-04-13 11:02:18 +00:00
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
2010-01-04 08:08:50 +00:00
#
# config.mock_with :mocha
# config.mock_with :flexmock
# config.mock_with :rr
2011-04-13 11:02:18 +00:00
config.mock_with :rspec
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
config.fixture_path = "#{::Rails.root}/spec/fixtures"
# If you're not using ActiveRecord, or you'd prefer not to run each of your
# examples within a transaction, remove the following line or assign false
# instead of true.
config.use_transactional_fixtures = true
2010-01-04 08:08:50 +00:00
end