Sha256: 30e7a5a22f6c238d3cd6a200ade5016bacfa51fac43e05940d85acdce2773049

Contents?: true

Size: 850 Bytes

Versions: 4

Compression:

Stored size: 850 Bytes

Contents

gem 'rspec'
gem 'rspec-collection_matchers'

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

include TestdroidAPI


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(local_cloud='http://localhost/testdroid-cloud')
	@client_local_host ||= begin
		client_local_host = Client.new('admin@localhost', 'admin', local_cloud)
	rescue Exception => e
	end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
testdroid-api-client-updated-0.5.1 spec/spec_helper.rb
testdroid-api-client-0.5.0 spec/spec_helper.rb
testdroid-api-client-0.4.1 spec/spec_helper.rb
testdroid-api-client-0.4.0 spec/spec_helper.rb