Sha256: 5d3101ec3c8c81b1d2018940dc76408c1b14f36a58560da5ee86fb1c34a9c362
Contents?: true
Size: 952 Bytes
Versions: 1
Compression:
Stored size: 952 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rubygems' require 'rspec' require 'active_record' require 'cheddargetter_client_rails' CGEmail = "michael@expectedbehavior.com" CGProductCode = 'GEM_TEST' CGPassword = "DROlOAeQpWey6J2cqTyEzH" CGFreePlanId = "a6a816c8-6d14-11e0-bcd4-40406799fa1e" CGClient = Cheddargetter::Client.new(:product_code => CGProductCode, :username => CGEmail, :password => CGPassword) # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| config.mock_with :rspec config.before { stub_cheddargetter } end def stub_cheddargetter Cheddargetter::Client.stub(:new).and_return CGClient end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cheddargetter_client_rails-0.2.2 | spec/spec_helper.rb |