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

Version Path
bearcat-1.2.9 spec/bearcat/client/group_categories_spec.rb
bearcat-1.2.7 spec/bearcat/client/group_categories_spec.rb
bearcat-1.2.6 spec/bearcat/client/group_categories_spec.rb
bearcat-1.2.5 spec/bearcat/client/group_categories_spec.rb
bearcat-1.2.4 spec/bearcat/client/group_categories_spec.rb
bearcat-1.2.3 spec/bearcat/client/group_categories_spec.rb
bearcat-1.2.1 spec/bearcat/client/group_categories_spec.rb
bearcat-1.2.0 spec/bearcat/client/group_categories_spec.rb
bearcat-1.1.1 spec/bearcat/client/group_categories_spec.rb
bearcat-1.1.0 spec/bearcat/client/group_categories_spec.rb
bearcat-1.0.28 spec/bearcat/client/group_categories_spec.rb
bearcat-1.0.27 spec/bearcat/client/group_categories_spec.rb
bearcat-1.0.26 spec/bearcat/client/group_categories_spec.rb
bearcat-1.0.25 spec/bearcat/client/group_categories_spec.rb
bearcat-1.0.24 spec/bearcat/client/group_categories_spec.rb
bearcat-1.0.23 spec/bearcat/client/group_categories_spec.rb
bearcat-1.0.22 spec/bearcat/client/group_categories_spec.rb
bearcat-1.0.21 spec/bearcat/client/group_categories_spec.rb