Sha256: af7fb36fefa97a7a762d849abcf89861e0e79e37d27bb14827ce4d95c6788659
Contents?: true
Size: 1005 Bytes
Versions: 2
Compression:
Stored size: 1005 Bytes
Contents
require 'spec_helper' describe Paymo::Extras do before(:all) do VCR.use_cassette('auth') do Paymo::Base.new(username: 'james@jamesduncombe.com', password: ENV['PAYMO_PASS']) end end describe '#earnt_today?' do it 'returns how much a user has earnt today' do VCR.use_cassette('extras.earnt_today', record: :new_episodes) do Paymo::Extras.new(9308).earnt_today?.should be_an_instance_of Float end end end describe '#earnt_this_month?' do it 'returns how much a user has earnt this month' do VCR.use_cassette('extras.earnt_this_month', record: :new_episodes) do Paymo::Extras.new(9308).earnt_this_month?.should be_an_instance_of Float end end end describe '#earnt_this_week?' do it 'returns how much a user has earnt this week' do VCR.use_cassette('extras.earnt_this_week', record: :new_episodes) do Paymo::Extras.new(9308).earnt_this_week?.should be_an_instance_of Float end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
paymo-0.0.2 | spec/lib/paymo/extras_spec.rb |
paymo-0.0.1 | spec/lib/paymo/extras_spec.rb |