Sha256: db2da4d2d23c23e04d27e93ca073194d9075de5e6184efa8f80968068e730111

Contents?: true

Size: 917 Bytes

Versions: 5

Compression:

Stored size: 917 Bytes

Contents

require 'check_mobi'
# Dir['check_mobi/*.rb'].each { |file| require file }
# Dir['check_mobi/resources/**/*.rb'].each { |file| require file }
require 'minitest/spec'
require 'minitest/autorun'
require "minitest/focus"
require 'webmock/minitest'
require 'vcr'
require 'coveralls'

Coveralls.wear!

VCR.configure do |config|
  config.cassette_library_dir = 'fixtures/vcr_cassettes'
  config.hook_into :webmock
  config.filter_sensitive_data('<API_KEY>') { ENV['API_KEY'] }
end

WebMock.disable_net_connect!

def stub_get_request(url)
  stub_request(:get, url)
end

def stub_delete_request(url)
  stub_request(:delete, url)
end

def stub_post_request(url)
  stub_request(:post, url)
end

def headers_without_authorization
  {
      'Accept': 'application/json',
      'Content-Type': 'application/json'
  }
end

def headers_with_authorization
  headers_without_authorization.merge!({'Authorization': ENV['API_KEY']})
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
check_mobi-1.0.5 test/helper.rb
check_mobi-1.0.4 test/helper.rb
check_mobi-1.0.3 test/helper.rb
check_mobi-1.0.2 test/helper.rb
check_mobi-1.0.1 test/helper.rb