Sha256: cf530fd1bfcf75062d8b5298f9707d834a61529b49285cc092751dbe1771edb3

Contents?: true

Size: 1.05 KB

Versions: 4

Compression:

Stored size: 1.05 KB

Contents

ENV['environment'] ||= 'test'
require 'simplecov'
require 'coveralls'

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
    SimpleCov::Formatter::HTMLFormatter,
    Coveralls::SimpleCov::Formatter
]
SimpleCov.start do
  add_filter '/spec'
end

require 'bundler/setup'
Bundler.setup

require 'hydra/works'
require 'pry' unless ENV['CI']
require 'active_fedora'
require 'active_fedora/cleaner'

Dir['./spec/support/**/*.rb'].each { |f| require f }

# require 'http_logger'
# HttpLogger.logger = Logger.new(STDOUT)
# HttpLogger.ignore = [/localhost:8983\/solr/]
# HttpLogger.colorize = false
# HttpLogger.log_headers = true

RSpec.configure do |config|
  config.color = true
  config.tty = true

  # Uncomment the following line to get errors and backtrace for deprecation warnings
  # config.raise_errors_for_deprecations!

  # Use the specified formatter
  config.formatter = :progress

  config.before :each do |example|
    ActiveFedora::Cleaner.clean! unless example.metadata[:no_clean]
  end
end

def fixture_path
  File.expand_path('../fixtures', __FILE__)
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hydra-works-0.6.0 spec/spec_helper.rb
hydra-works-0.5.0 spec/spec_helper.rb
hydra-works-0.4.0 spec/spec_helper.rb
hydra-works-0.3.0 spec/spec_helper.rb