Sha256: 5764f6904b83360e225bde32a83f230129c8c3eacff04d27848f95d3f8dcadd5
Contents?: true
Size: 1.62 KB
Versions: 5
Compression:
Stored size: 1.62 KB
Contents
$: << File.dirname(__FILE__) + '/../lib' require 'ostruct' require 'rubygems' require 'bundler' begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end require 'rspec' require 'rails' require 'sprockets' require 'roadie/railtie' require 'action_mailer/railtie' FIXTURES_PATH = Pathname.new(File.dirname(__FILE__)).join('fixtures') class TestApplication < Rails::Application def config @config end def assets env = Sprockets::Environment.new env.append_path root.join('app','assets','stylesheets') env end def root FIXTURES_PATH end def reset_test_config @config = OpenStruct.new({ :action_mailer => OpenStruct.new(:default_url_options => {}), :assets => OpenStruct.new(:enabled => false), :roadie => OpenStruct.new(:provider => nil, :enabled => true), }) change_default_url_options(:host => "example.com") end end if Roadie::Railtie.respond_to?(:run_initializers) # Rails >= 3.1 ActionMailer::Railtie.run_initializers(:default, Rails.application) Roadie::Railtie.run_initializers(:default, Rails.application) else # Rails 3.0 Rails.application.config.active_support.deprecation = :log Rails.logger = Logger.new('/dev/null') Rails.application.initialize! end RSpec.configure do |config| config.before(:each) do Rails.application.reset_test_config end config.treat_symbols_as_metadata_keys_with_true_values = true config.run_all_when_everything_filtered = true end Dir['./spec/support/**/*.rb'].each { |file| require file }
Version data entries
5 entries across 5 versions & 2 rubygems
Version | Path |
---|---|
roadie-2.4.3 | spec/spec_helper.rb |
md-roadie-2.4.2.md.1 | spec/spec_helper.rb |
roadie-2.4.2 | spec/spec_helper.rb |
roadie-2.4.1 | spec/spec_helper.rb |
roadie-2.4.0 | spec/spec_helper.rb |