Sha256: 2706c450e537d012117d2c26f9bd1ded2e89efe72fbd054a39d72f48125c5e32

Contents?: true

Size: 1.17 KB

Versions: 3

Compression:

Stored size: 1.17 KB

Contents

# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'
root_path = File.expand_path(File.join(File.dirname(__FILE__), '..'))
$LOAD_PATH.unshift(File.join(root_path, '/test/lib')) # add test/lib to the load path

require 'bundler/setup'
Bundler.require

require 'mock_rails'
require 'blueprint'
AridCache.framework.init

require 'will_paginate/version'
if WillPaginate::VERSION::MAJOR < 3
  WillPaginate.enable_activerecord
else
  require 'will_paginate/collection'
  require 'will_paginate/finders/active_record'
  WillPaginate::Finders::ActiveRecord.enable!
end

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

RSpec.configure do |config|
  include ActiveRecordQueryMatchers
  config.mock_with :rr

  config.before(:all) do
    Sham.reset(:before_all)
  end

  config.before(:each) do
    Sham.reset(:before_each)
    full_example_description = "#{self.class.description} #{@method_name}"
    RAILS_DEFAULT_LOGGER.info("\n\n#{full_example_description}\n#{'-' * (full_example_description.length)}")
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
arid_cache-1.4.2 spec/spec_helper.rb
arid_cache-1.4.1 spec/spec_helper.rb
arid_cache-1.4.0 spec/spec_helper.rb