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.6.0 spec/spec_helper.rb
chargebee-2.5.9 spec/spec_helper.rb
chargebee-2.5.8 spec/spec_helper.rb
chargebee-2.5.7 spec/spec_helper.rb
chargebee-2.5.6 spec/spec_helper.rb
chargebee-2.5.5 spec/spec_helper.rb
chargebee-2.5.4 spec/spec_helper.rb
chargebee-2.5.3 spec/spec_helper.rb
chargebee-2.5.2 spec/spec_helper.rb
chargebee-2.5.0 spec/spec_helper.rb
chargebee-2.4.9 spec/spec_helper.rb
chargebee-2.4.8 spec/spec_helper.rb
chargebee-2.4.7 spec/spec_helper.rb
chargebee-2.4.6 spec/spec_helper.rb
chargebee-2.4.5 spec/spec_helper.rb
chargebee-2.4.4 spec/spec_helper.rb
chargebee-2.4.3 spec/spec_helper.rb
chargebee-2.4.2 spec/spec_helper.rb
chargebee-2.4.1 spec/spec_helper.rb
chargebee-2.4.0 spec/spec_helper.rb