Sha256: 8545fd93495f5b42c741d1c031006aa70aaf8ab6da2ef36095745a9bc1222c9c
Contents?: true
Size: 1.36 KB
Versions: 2
Compression:
Stored size: 1.36 KB
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) ENV["RAILS_ENV"] ||= 'test' ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : "ruby" if ENV['COVERAGE'] and RUBY_VERSION =~ /^1.9/ and ruby_engine != "jruby" require 'simplecov' SimpleCov.start do root File.expand_path(File.dirname(__FILE__) + "../../..") end end require File.expand_path("config/environment", ENV['RAILS_ROOT'] || File.expand_path("../internal", __FILE__)) require 'rspec/rails' require 'rspec/active_model/mocks' # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. # Blacklight, again, make sure we're looking in the right place for em. # Relative to HERE, NOT to Rails.root, which is off somewhere else. Dir[Pathname.new(File.expand_path("../support/**/*.rb", __FILE__))].each {|f| require f} RSpec.configure do |config| # rspec-rails 3 will no longer automatically infer an example group's spec type # from the file location. You can explicitly opt-in to the feature using this # config option. # To explicitly tag specs without using automatic inference, set the `:type` # metadata manually: # # describe ThingsController, :type => :controller do # # Equivalent to being in spec/controllers # end config.infer_spec_type_from_file_location! end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blacklight-marc-5.10.0 | spec/spec_helper.rb |
blacklight-marc-5.5.0 | spec/spec_helper.rb |