Sha256: abf916a616c04b24cb85bc522ff660af2b0bf5fb2d32347404b23e7c5225589d

Contents?: true

Size: 766 Bytes

Versions: 6

Compression:

Stored size: 766 Bytes

Contents

require 'rubygems'
require 'spec'
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require 'chargify_api_ares'

require 'fakeweb'
require 'mocks/fake_resource'
ActiveResource::Base.send :include, ActiveResource::FakeResource
FakeWeb.allow_net_connect = false
require 'factory_girl'
require 'faker'

Chargify.configure do |c|
  c.subdomain = 'test'
  c.api_key   = 'test'
end
 
Spec::Runner.configure do |config|
  config.after(:each) do
    ActiveResource::FakeResource.clean
  end
end

def test_domain
  "#{Chargify::Base.connection.site.scheme}://#{Chargify::Base.connection.user}:#{Chargify::Base.connection.password}@#{Chargify::Base.connection.site.host}:#{Chargify::Base.connection.site.port}"
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
chargify_api_ares-0.3.4 spec/spec_helper.rb
micah_chargify_api_ares-0.3.4 spec/spec_helper.rb
chargify_api_ares-0.3.3 spec/spec_helper.rb
chargify_api_ares-0.3.2 spec/spec_helper.rb
ninjabutton_chargify_api_ares-0.3.1 spec/spec_helper.rb
chargify_api_ares-0.3.1 spec/spec_helper.rb