Sha256: 459e53a6ce3f607e02f36f305bd4e72cff4f55784dd78214f09819f19deb9142
Contents?: true
Size: 535 Bytes
Versions: 18
Compression:
Stored size: 535 Bytes
Contents
require 'helper' describe Bearcat::Client::GroupCategories do before do @client = Bearcat::Client.new(prefix: "http://canvas.instructure.com", token: "test_token") end it "returns group categories" do stub_get(@client, "/api/v1/courses/1809/group_categories").to_return(json_response("group_categories.json")) categories = @client.list_group_categories('courses', 1809) categories.count.should == 2 categories.first['name'].should == 'mark red' categories.last['name'].should == 'test group' end end
Version data entries
18 entries across 18 versions & 1 rubygems