Sha256: 7ef291c7393b1e2bf9516f0c34423b8ebc92d6ae1054106f4f71ffff20e8a74f

Contents?: true

Size: 799 Bytes

Versions: 12

Compression:

Stored size: 799 Bytes

Contents

# encoding: UTF-8

require File.expand_path('../../spec_helper', __FILE__)

describe "Credits Management"  do
  
  before :each do
    @client = Loopiator::Client.new
  end
  
  after :each do
    Loopiator.reset
  end
  
  context "When managing my credits:" do
    it "I should be able to check how many credits I currently have (with VAT)" do
    	expect(@client).to receive(:get_credits_amount).with(include_vat: true).and_return(125)
      expect(@client.get_credits_amount(include_vat: true)).to be == 125
    end
    
    it "I should be able to check how many credits I currently have (without VAT)" do
    	expect(@client).to receive(:get_credits_amount).with(include_vat: false).and_return(100)
      expect(@client.get_credits_amount(include_vat: false)).to be == 100
    end
  end
  
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
loopiator-0.4.2 spec/loopiator/credits_spec.rb
loopiator-0.4.1 spec/loopiator/credits_spec.rb
loopiator-0.4.0 spec/loopiator/credits_spec.rb
loopiator-0.3.8 spec/loopiator/credits_spec.rb
loopiator-0.3.7 spec/loopiator/credits_spec.rb
loopiator-0.3.6 spec/loopiator/credits_spec.rb
loopiator-0.3.5 spec/loopiator/credits_spec.rb
loopiator-0.3.4 spec/loopiator/credits_spec.rb
loopiator-0.3.3 spec/loopiator/credits_spec.rb
loopiator-0.3.2 spec/loopiator/credits_spec.rb
loopiator-0.3.1 spec/loopiator/credits_spec.rb
loopiator-0.3.0 spec/loopiator/credits_spec.rb