Sha256: ce94978dff46e873023d4bb0354c1be9f88bacb2cc2b3b3581ba0a0966611a50

Contents?: true

Size: 915 Bytes

Versions: 6

Compression:

Stored size: 915 Bytes

Contents

ENV["RACK_ENV"] = "test"
ENV["RAILS_ENV"] = "test"

require "pry-byebug"
require "rspec"

require "simplecov"

SimpleCov.start do
  # return true to remove src from coverage
  add_filter do |src|
    next true if src.filename =~ /\/spec\//

    false
  end

  # minimum_coverage 90
end

require "simple/service"
require "simple/workflow"

Dir.glob("./spec/support/**/*.rb").sort.each { |path| load path }

RSpec.configure do |config|
  config.run_all_when_everything_filtered = true
  config.filter_run focus: (ENV["CI"] != "true")
  config.expect_with(:rspec) { |c| c.syntax = :expect }
  config.order = "random"
  config.example_status_persistence_file_path = ".rspec.data"

  config.backtrace_exclusion_patterns << /spec\/support/
  config.backtrace_exclusion_patterns << /spec\/helpers/
  config.backtrace_exclusion_patterns << /spec_helper/

  # config.around(:each) do |example|
  #   example.run
  # end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
simple-service-0.3.1 spec/spec_helper.rb
simple-service-0.2.3 spec/spec_helper.rb
simple-service-0.3.0 spec/spec_helper.rb
simple-service-0.2.2 spec/spec_helper.rb
simple-service-0.2.1 spec/spec_helper.rb
simple-service-0.2.0 spec/spec_helper.rb