Sha256: 59af4c5e9dbf36615d3b0cf6090aad9f3245b34b5424a7d5f05024b6e55c020e
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 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' FIXTURES_PATH = Pathname.new(File.dirname(__FILE__)).join('fixtures') Roadie::Railtie.run_initializers class TestApplication def config @config ||= OpenStruct.new({ :action_mailer => OpenStruct.new(:default_url_options => {:host => "example.com"}), :assets => OpenStruct.new(:enabled => false), :roadie => OpenStruct.new(:provider => nil), }) end def assets env = Sprockets::Environment.new env.append_path root.join('app','assets','stylesheets') env end def root FIXTURES_PATH end end RSpec.configure do |c| c.before(:each) do Rails.stub(:application => TestApplication.new) end end Dir['./spec/support/**/*'].each { |file| require file }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
roadie-2.1.0 | spec/spec_helper.rb |
roadie-2.1.0.pre2 | spec/spec_helper.rb |
roadie-2.1.0.pre1 | spec/spec_helper.rb |