Sha256: 266b844129b751196bee021cf52f1742b7132f5f9b633f36db2b1828b6c6dc81

Contents?: true

Size: 710 Bytes

Versions: 8

Compression:

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

module ActiveRecord
  class Base
  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
  config.treat_symbols_as_metadata_keys_with_true_values = true
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hat-trick-0.4.0 spec/spec_helper.rb
hat-trick-0.3.0 spec/spec_helper.rb
hat-trick-0.2.2 spec/spec_helper.rb
hat-trick-0.2.1 spec/spec_helper.rb
hat-trick-0.2.0 spec/spec_helper.rb
hat-trick-0.1.5 spec/spec_helper.rb
hat-trick-0.1.4 spec/spec_helper.rb
hat-trick-0.1.3 spec/spec_helper.rb