Sha256: 16048425fb23648e1d16604ecd13817487453a8413efa1a0a850d2d2fb14d17d

Contents?: true

Size: 861 Bytes

Versions: 4

Compression:

Stored size: 861 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

FixturesPath = Pathname.new(File.dirname(__FILE__)).join('fixtures')

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
roadie-1.1.3 spec/spec_helper.rb
roadie-1.1.1 spec/spec_helper.rb
roadie-1.1.2 spec/spec_helper.rb
roadie-1.1.0 spec/spec_helper.rb