Sha256: 0b19558a3eb5911b53c4d60c0b8d9f442d6d52349c597942fae0c77a6ba3278a

Contents?: true

Size: 639 Bytes

Versions: 1

Compression:

Stored size: 639 Bytes

Contents

require 'terminal'
require 'webmock/rspec'

if ENV['CIRCLE_ARTIFACTS']
  require 'simplecov'
  dir = File.join("..", "..", "..", ENV['CIRCLE_ARTIFACTS'], "coverage")
  SimpleCov.coverage_dir(dir)
end

def a_post(path)
  a_request(:post, Terminal::Client::API_PREFIX + path)
end

def stub_post(path)
  stub_request(:post, Terminal::Client::API_PREFIX + path)
end

def fixture(file)
  f_path = File.expand_path('../fixtures', __FILE__)
  File.new(f_path + '/' + file)
end

# spec_helper.rb
RSpec.configure do |config|
  config.expect_with :rspec do |c|
    c.syntax = [:should, :expect]
    # config.raise_errors_for_deprecations!
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cc-terminal-0.1.2 spec/helper.rb