Sha256: cc87278b45ea0d9c4344dd2761620984e0e510a1dabb6e1af3460a5751ce72a0

Contents?: true

Size: 702 Bytes

Versions: 2

Compression:

Stored size: 702 Bytes

Contents

if ENV["CI"]
  require "coveralls"
  Coveralls.wear!
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

2 entries across 2 versions & 1 rubygems

Version Path
chatwork-0.6.1 spec/spec_helper.rb
chatwork-0.6.0 spec/spec_helper.rb