Sha256: 6e4a471d2c75d314fc25cdb718f353882911118f032e70e5d3181e5102cd38bf

Contents?: true

Size: 534 Bytes

Versions: 35

Compression:

Stored size: 534 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

35 entries across 35 versions & 1 rubygems

Version Path
chargebee-2.11.2 spec/spec_helper.rb
chargebee-2.11.1 spec/spec_helper.rb
chargebee-2.11.0 spec/spec_helper.rb
chargebee-2.10.1 spec/spec_helper.rb
chargebee-2.10.0 spec/spec_helper.rb
chargebee-2.9.0 spec/spec_helper.rb
chargebee-2.8.8 spec/spec_helper.rb
chargebee-2.8.7 spec/spec_helper.rb
chargebee-2.8.6 spec/spec_helper.rb
chargebee-2.8.5 spec/spec_helper.rb
chargebee-2.8.4 spec/spec_helper.rb
chargebee-2.8.3 spec/spec_helper.rb
chargebee-2.8.2 spec/spec_helper.rb
chargebee-2.8.1 spec/spec_helper.rb
chargebee-2.8.0 spec/spec_helper.rb
chargebee-2.7.9 spec/spec_helper.rb
chargebee-2.7.8 spec/spec_helper.rb
chargebee-2.7.7 spec/spec_helper.rb
chargebee-2.7.6 spec/spec_helper.rb
chargebee-2.7.5 spec/spec_helper.rb