Sha256: e67e071aab15ca3dfe1c5493b61a36fe9c24c3918969e5598d8d841de5c5c186
Contents?: true
Size: 420 Bytes
Versions: 10
Compression:
Stored size: 420 Bytes
Contents
require 'helper' describe Bearcat::Client::Accounts do before do @client = Bearcat::Client.new(prefix: "http://canvas.instructure.com", token: "test_token") end it "returns a single account" do stub_get(@client, "/api/v1/accounts/1").to_return(json_response("single_account.json")) account = @client.account(1) account["id"].should == 1 account["name"].should == "Local Testing" end end
Version data entries
10 entries across 10 versions & 1 rubygems