Sha256: 4c0093ff8f83a51d9ec834285710017f4fae92b1a8459fa303b3a5b828731875

Contents?: true

Size: 602 Bytes

Versions: 3

Compression:

Stored size: 602 Bytes

Contents

ENV["RAILS_ENV"] ||= 'test'
require 'bundler/setup'
require 'rails'
require 'logger'

module Rails
  def self.root
    Pathname.new(File.expand_path('../..', __FILE__))
  end

  def self.logger
    @logger ||= ::Logger.new(STDOUT).tap { |l| l.level = ::Logger::ERROR }
  end
end

require File.expand_path('../../lib/hat-trick', __FILE__)
require 'rspec/autorun'

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}

RSpec.configure do |config|
  config.mock_with :mocha
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hat-trick-0.1.2 spec/spec_helper.rb
hat-trick-0.1.1 spec/spec_helper.rb
hat-trick-0.1.0 spec/spec_helper.rb