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.26.0 spec/spec_helper.rb
chargebee-2.25.0 spec/spec_helper.rb
chargebee-2.24.0 spec/spec_helper.rb
chargebee-2.23.0 spec/spec_helper.rb
chargebee-2.22.1 spec/spec_helper.rb
chargebee-2.22.0 spec/spec_helper.rb
chargebee-2.21.0 spec/spec_helper.rb
chargebee-2.20.0 spec/spec_helper.rb
chargebee-2.19.0 spec/spec_helper.rb
chargebee-2.18.0 spec/spec_helper.rb
chargebee-2.17.0 spec/spec_helper.rb
chargebee-2.16.0 spec/spec_helper.rb
chargebee-2.15.0 spec/spec_helper.rb
chargebee-2.14.1 spec/spec_helper.rb
chargebee-2.14.0 spec/spec_helper.rb
chargebee-2.13.1 spec/spec_helper.rb
chargebee-2.13.0 spec/spec_helper.rb
chargebee-2.12.0 spec/spec_helper.rb
chargebee-2.6.2 spec/spec_helper.rb
chargebee-2.6.1 spec/spec_helper.rb