Sha256: 0ac134ade2ea78d94702bcab4a71ca7bf9b86fbaf887a7df4d0cc9658447b9b8

Contents?: true

Size: 510 Bytes

Versions: 150

Compression:

Stored size: 510 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)
  body = body.to_json if !(body.kind_of? String)
  m = mock
  m.instance_variable_set('@resp_values', { :body => body, :code => code })
  def m.body; @resp_values[:body]; end
  def m.code; @resp_values[:code]; end
  m
end

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

Version data entries

150 entries across 150 versions & 1 rubygems

Version Path
chargebee-2.1.9 spec/spec_helper.rb
chargebee-2.1.8 spec/spec_helper.rb
chargebee-2.1.7 spec/spec_helper.rb
chargebee-2.1.6 spec/spec_helper.rb
chargebee-2.1.5 spec/spec_helper.rb
chargebee-2.1.4 spec/spec_helper.rb
chargebee-2.1.3 spec/spec_helper.rb
chargebee-2.1.2 spec/spec_helper.rb
chargebee-2.1.1 spec/spec_helper.rb
chargebee-2.1.0 spec/spec_helper.rb
chargebee-2.0.9 spec/spec_helper.rb
chargebee-2.0.8 spec/spec_helper.rb
chargebee-2.0.7 spec/spec_helper.rb
chargebee-2.0.6 spec/spec_helper.rb
chargebee-2.0.5 spec/spec_helper.rb
chargebee-2.0.4 spec/spec_helper.rb
chargebee-2.0.3 spec/spec_helper.rb
chargebee-2.0.2 spec/spec_helper.rb
chargebee-2.0.1 spec/spec_helper.rb
chargebee-2.0.0 spec/spec_helper.rb