Sha256: 13a74bfd92158b2db90e928123c3cedd45b58251cbc050ee7a4aaec812953f77

Contents?: true

Size: 971 Bytes

Versions: 4

Compression:

Stored size: 971 Bytes

Contents

ENV['RAILS_ENV'] ||= 'test'

require 'active_model'
require 'skn_utils'
require 'rspec'

# Shared Examples and Support Routines
Dir["./spec/support/**/*.rb"].sort.each { |f| require f}

# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
  Kernel.srand config.seed

  config.order = :random
  config.color = true
  config.tty = false
  config.formatter = :progress  #:html, :textmate, :documentation

  config.filter_run :focus
  config.run_all_when_everything_filtered = true

  config.disable_monkey_patching!  # -- breaks rspec runtime
  config.warnings = true
  # config.profile_examples = 10

  if config.files_to_run.one?
    config.formatter = :documentation 
  end

  config.expect_with :rspec do |expectations|
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
    expectations.syntax = :expect
  end

  config.mock_with :rspec do |mocks|
    mocks.verify_partial_doubles = true
  end
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
skn_utils-1.4.4 spec/spec_helper.rb
skn_utils-1.4.3 spec/spec_helper.rb
skn_utils-1.4.1 spec/spec_helper.rb
skn_utils-1.4.0 spec/spec_helper.rb