Sha256: ab56c5ac51c0255ec15fa19834c9d59530a981f5e3d75d8e553892e8343855b4

Contents?: true

Size: 880 Bytes

Versions: 2

Compression:

Stored size: 880 Bytes

Contents

gem 'rspec', '~> 2.4'
gem 'faraday', '~> 0.9'

require 'rspec'
require 'json'
require_relative '../lib/testdroid-api-client'
require 'webmock/rspec'
require 'vcr'

include TestdroidAPI
CLOUD_ENDPOINT='https://cloud.testdroid.com'


VCR.configure do |c|
	puts "init VCR"
  c.cassette_library_dir = File.join(File.dirname(__FILE__), 'fixtures', 'cassettes')
  c.hook_into :webmock , :faraday
  c.default_cassette_options = {:serialize_with => :json,    :preserve_exact_body_bytes => true, :decode_compressed_response => true}
  c.allow_http_connections_when_no_cassette = false
end

def client 
	@client ||= begin
		client = Client.new('defaultuser', 'password')
	rescue Exception => e
	end
end
def client_local_host 
	@client_local_host ||= begin
		client_local_host = Client.new('admin@localhost', 'admin', 'http://localhost:8080/testdroid-cloud')
	rescue Exception => e
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
testdroid-api-client-0.1.2 spec/spec_helper.rb
testdroid-api-client-0.1.1 spec/spec_helper.rb