Sha256: e2898f08b53f2d17d802e5e15225d1a43d9b2b375cbaa7d6387176fd0654f8ab

Contents?: true

Size: 471 Bytes

Versions: 9

Compression:

Stored size: 471 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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cc-terminal-0.1.1 spec/helper.rb
cc-terminal-0.1.0 spec/helper.rb
cc-terminal-0.0.8 spec/helper.rb
cc-terminal-0.0.7 spec/helper.rb
cc-terminal-0.0.6 spec/helper.rb
cc-terminal-0.0.5 spec/helper.rb
cc-terminal-0.0.4 spec/helper.rb
cc-terminal-0.0.3 spec/helper.rb
cc-terminal-0.0.2 spec/helper.rb