A test faker for faking requests and responses to and from the Chargify API
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
Rakefile
fake_chargify.gemspec
readme.md

readme.md

fake_chargify

fake_chargify is a helper for faking web requests and responses to and from the Chargify API. You can test Chargify within your application on a plane now. I am sure that happens all the time.

Installation

gem 'fake_chargify'
require 'fake_chargify'

The basics

Example, in spec_helper.rb

FakeChargify.activate!
RSpec.configure do |c|
  c.before do
    FakeChargify.clear!
  end
end