Sha256: 6c57abb191493755db1cf79971b09da965b1509dcb0e7b61feba7814056fe42c

Contents?: true

Size: 585 Bytes

Versions: 36

Compression:

Stored size: 585 Bytes

Contents

require File.dirname(__FILE__) + '/../lib/chargebee'

require 'rspec'
require 'pp'
require 'mocha'
require 'json'

RSpec.configure do |config|
  config.mock_with :mocha
end

def mock_response(body, code=200, headers)
  body = body.to_json if !(body.kind_of? String)
  m = mock
  m.instance_variable_set('@resp_values', { :body => body, :code => code, :headers => headers })
  def m.body; @resp_values[:body]; end
  def m.code; @resp_values[:code]; end
  def m.headers; @resp_values[:headers]; end
  m
end

ChargeBee.configure(
  :api_key => "dummy_api_key", 
  :site => "dummy_site"
)

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
chargebee-2.51.1 spec/spec_helper.rb
chargebee-2.51.0 spec/spec_helper.rb
chargebee-2.50.1 spec/spec_helper.rb
chargebee-2.50.0 spec/spec_helper.rb
chargebee-2.49.0 spec/spec_helper.rb
chargebee-2.48.0 spec/spec_helper.rb
chargebee-2.47.1 spec/spec_helper.rb
chargebee-2.47.0 spec/spec_helper.rb
chargebee-2.47.0.beta.1 spec/spec_helper.rb
chargebee-2.46.0 spec/spec_helper.rb
chargebee-2.45.0 spec/spec_helper.rb
chargebee-2.44.1 spec/spec_helper.rb
chargebee-2.44.0 spec/spec_helper.rb
chargebee-2.43.0 spec/spec_helper.rb
chargebee-2.42.0 spec/spec_helper.rb
chargebee-2.41.0 spec/spec_helper.rb
chargebee-2.40.0 spec/spec_helper.rb
chargebee-2.38.1 spec/spec_helper.rb
chargebee-2.38.0 spec/spec_helper.rb
chargebee-2.37.1 spec/spec_helper.rb