Sha256: 03639184d699d7362660147e68f91ceb37acb74c0e5334ddfb5236774904f005

Contents?: true

Size: 1.56 KB

Versions: 16

Compression:

Stored size: 1.56 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 'engine_cart'
EngineCart.load_application!

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!

  config.include(ControllerLevelHelpers, type: :helper)
  config.before(:each, type: :helper) { initialize_controller_helpers(helper) }

  config.include(ControllerLevelHelpers, type: :view)
  config.before(:each, type: :view) { initialize_controller_helpers(view) }
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
blacklight-marc-8.1.4 spec/spec_helper.rb
blacklight-marc-8.1.3 spec/spec_helper.rb
blacklight-marc-8.1.2 spec/spec_helper.rb
blacklight-marc-8.1.1 spec/spec_helper.rb
blacklight-marc-8.1.0 spec/spec_helper.rb
blacklight-marc-8.0.0 spec/spec_helper.rb
blacklight-marc-7.2.0 spec/spec_helper.rb
blacklight-marc-7.1.1 spec/spec_helper.rb
blacklight-marc-7.1.0 spec/spec_helper.rb
blacklight-marc-7.0.1 spec/spec_helper.rb
blacklight-marc-6.3.0 spec/spec_helper.rb
blacklight-marc-7.0.0 spec/spec_helper.rb
blacklight-marc-7.0.0.rc1 spec/spec_helper.rb
blacklight-marc-6.2.0 spec/spec_helper.rb
blacklight-marc-6.1.1 spec/spec_helper.rb
blacklight-marc-6.1.0 spec/spec_helper.rb