Sha256: fbb7fcddff5429f3d24d0508133908594147ab78e94e48efbbf9728fca39d5d0

Contents?: true

Size: 1.19 KB

Versions: 9

Compression:

Stored size: 1.19 KB

Contents

require 'pathname'
require 'simplecov'

# Setup coveralls only if running inside Travis-CI
if ENV['TRAVIS']
  require 'coveralls'
  SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
    SimpleCov::Formatter::HTMLFormatter,
    Coveralls::SimpleCov::Formatter
  ]
end

# Configure coverage stats.
SimpleCov.start do
  ignored_files = %w(version.rb allscripts_unity_client.gemspec Gemfile Rakefile)

  add_filter do |source_file|
    filename = Pathname.new(source_file.filename).basename
    ignored_files.include?(filename) || source_file.filename.include?('spec/')
  end
end

lib = File.expand_path('../lib/', __FILE__)
$:.unshift lib unless $:.include?(lib)

require 'allscripts_unity_client'
require 'rspec'
require 'webmock/rspec'
require 'savon/mock/spec_helper'
require 'securerandom'
require 'faker'
require 'factory_girl'
require 'json'

# Include all support files
Dir['./spec/support/**/*.rb'].sort.each { |f| require f }

RSpec.configure do |config|
  # Run specs in random order to surface order dependencies. If you find an
  # order dependency and want to debug it, you can fix the order by providing
  # the seed, which is printed after each run.
  #     --seed 1234
  config.order = "random"
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
allscripts_unity_client-2.1.5 spec/spec_helper.rb
allscripts_unity_client-2.1.4 spec/spec_helper.rb
allscripts_unity_client-2.1.3 spec/spec_helper.rb
allscripts_unity_client-2.1.2 spec/spec_helper.rb
allscripts_unity_client-2.1.1 spec/spec_helper.rb
allscripts_unity_client-2.1.0 spec/spec_helper.rb
allscripts_unity_client-2.0.5 spec/spec_helper.rb
allscripts_unity_client-2.0.4 spec/spec_helper.rb
allscripts_unity_client-2.0.3 spec/spec_helper.rb