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