Sha256: 44aca1ca89625f54a621c46012a3f2b2a1f0a68ed7b65608508162629e4db69d
Contents?: true
Size: 791 Bytes
Versions: 2
Compression:
Stored size: 791 Bytes
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' Dir['./spec/support/**/*'].each { |file| require file } require 'action_mailer' require 'roadie' class TestApplication def config OpenStruct.new(:action_mailer => OpenStruct.new(:default_url_options => {:host => "example.com"})) end end if defined?(Rails) Rails.stub!(:root => Pathname.new('/path/to'), :application => TestApplication.new) else class Rails def self.root; Pathname.new('/path/to'); end def self.application; TestApplication.new; end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
roadie-1.0.1 | spec/spec_helper.rb |
roadie-1.0.0 | spec/spec_helper.rb |