Sha256: aa673dd16dcab2af6f1de02e0807c30528b6f608b2a82a0fb3d56388b5230a31

Contents?: true

Size: 881 Bytes

Versions: 7

Compression:

Stored size: 881 Bytes

Contents

ENV['RAILS_ENV'] ||= 'test'
require File.expand_path("../dummy/config/environment.rb", __FILE__)
require 'rspec/rails'
require 'rspec/autorun'
require 'mocha/setup'
require 'factory_girl_rails'
require 'shoulda'
require 'timecop'

Rails.backtrace_cleaner.remove_silencers!

Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

Rearview.configure do |config|
  config.logger = Rails.logger
  config.sandbox_dir = Rails.root + "sandbox"
  config.sandbox_exec = ["rvm-exec","ruby-1.9.3-p448@rearview-sandbox","ruby"]
  config.sandbox_timeout = 10
  config.preload_jobs = false
  config.enable_monitor = false
end

Rearview.boot!

RSpec.configure do |config|
  config.mock_with :mocha
  config.use_transactional_fixtures = true
  config.infer_base_class_for_anonymous_controllers = false
  config.order = "random"
  config.include FactoryGirl::Syntax::Methods
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rearview-1.0.1-jruby spec/spec_helper.rb
rearview-1.0.0-jruby spec/spec_helper.rb
rearview-1.0.0.rc5-jruby spec/spec_helper.rb
rearview-1.0.0.rc4-jruby spec/spec_helper.rb
rearview-1.0.0.rc3-jruby spec/spec_helper.rb
rearview-1.0.0.rc2-jruby spec/spec_helper.rb
rearview-1.0.0.rc1-jruby spec/spec_helper.rb