Sha256: fcf51df0919f96de0d6f44134461e0b3a4a9c9a755edda9baf7bdb88d2d17e70

Contents?: true

Size: 934 Bytes

Versions: 1

Compression:

Stored size: 934 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'

require 'action_mailer'
require 'sprockets'
require 'roadie'

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

class TestApplication
  def config
    OpenStruct.new(:action_mailer => OpenStruct.new(:default_url_options => {:host => "example.com"}))
  end

  def assets
    env = Sprockets::Environment.new
    env.append_path FIXTURES_PATH.join('app','assets','stylesheets')
    env
  end
end

unless defined?(Rails)
  class Rails; 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

1 entries across 1 versions & 1 rubygems

Version Path
roadie-2.0.0 spec/spec_helper.rb