Sha256: 3283cd65990e8924d6f11e33d1fb7f91bddd9bda48190eb882435cb14328e0cc

Contents?: true

Size: 765 Bytes

Versions: 2

Compression:

Stored size: 765 Bytes

Contents

# encoding: UTF-8

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

describe "Credits Management -"  do
  
  before(:each) do
    @client = Loopiator::Client.new
  end
  
  describe "When managing my credits:" do
    
    it "I should be able to check how many credits I currently have (with VAT)" do
    	@client.expects(:get_credits_amount).with(true).once.returns(125)
    	remaining_credits = @client.get_credits_amount(true)
    	remaining_credits.should == 125
    end
    
    it "I should be able to check how many credits I currently have (without VAT)" do
    	@client.expects(:get_credits_amount).with(false).once.returns(100)
    	remaining_credits = @client.get_credits_amount(false)
    	remaining_credits.should == 100
    end

  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
loopiator-0.2.0 spec/loopiator/credits_spec.rb
loopiator-0.1.0 spec/loopiator/credits_spec.rb