Sha256: c73bd2daa7361e86090325b450e80de33a6872bc3b8ff37434f84d57fbe5132c

Contents?: true

Size: 862 Bytes

Versions: 5

Compression:

Stored size: 862 Bytes

Contents

if ENV["CI"]
  require "simplecov"
  require "coveralls"

  SimpleCov.formatter = Coveralls::SimpleCov::Formatter
  SimpleCov.start do
    %w[spec].each do |ignore_path|
      add_filter(ignore_path)
    end
  end
end

$LOAD_PATH << File.expand_path(File.join("..", "..", "lib"), __FILE__)

require "chatwork"

require "rspec-parameterized"
require "rspec/its"
require "webmock/rspec"
require "pry"
require "active_support/all"

begin
  require "backport_dig"
rescue LoadError # rubocop:disable Lint/HandleExceptions
end

Dir["#{__dir__}/support/**/*.rb"].each {|f| require f }

def spec_dir
  Pathname(__dir__)
end

def schema_file
  spec_dir.join("../api/RAML/api-ja.raml")
end

RSpec.configure do |config|
  config.before(:suite) do
    raise "Not found '#{schema_file}'. Please run `git submodule update --init` at first" unless schema_file.exist?
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
chatwork-0.12.1 spec/spec_helper.rb
chatwork-0.12.0 spec/spec_helper.rb
chatwork-0.11.0 spec/spec_helper.rb
chatwork-0.10.0 spec/spec_helper.rb
chatwork-0.9.0 spec/spec_helper.rb