Sha256: 7a32cfa91199913163a44e437653bc4875d846012a568973b08586b7d9a90c4b

Contents?: true

Size: 454 Bytes

Versions: 58

Compression:

Stored size: 454 Bytes

Contents

require 'helper'

describe Bearcat::Client::Groups do
  before do
    @client = Bearcat::Client.new(prefix: "http://canvas.instructure.com", token: "test_token")
  end

  it "returns course groups" do
    stub_get(@client, "/api/v1/courses/1/groups").to_return(json_response("course_groups.json"))
    groups = @client.course_groups(1)
    groups.count.should == 2
    groups.first['name'].should == 'group 1'
    groups.last['id'].should == 4
  end

end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
bearcat-1.2.3 spec/bearcat/client/groups_spec.rb
bearcat-1.2.1 spec/bearcat/client/groups_spec.rb
bearcat-1.2.0 spec/bearcat/client/groups_spec.rb
bearcat-1.1.1 spec/bearcat/client/groups_spec.rb
bearcat-1.1.0 spec/bearcat/client/groups_spec.rb
bearcat-1.0.28 spec/bearcat/client/groups_spec.rb
bearcat-1.0.27 spec/bearcat/client/groups_spec.rb
bearcat-1.0.26 spec/bearcat/client/groups_spec.rb
bearcat-1.0.25 spec/bearcat/client/groups_spec.rb
bearcat-1.0.24 spec/bearcat/client/groups_spec.rb
bearcat-1.0.23 spec/bearcat/client/groups_spec.rb
bearcat-1.0.22 spec/bearcat/client/groups_spec.rb
bearcat-1.0.21 spec/bearcat/client/groups_spec.rb
bearcat-1.0.20 spec/bearcat/client/groups_spec.rb
bearcat-1.0.19 spec/bearcat/client/groups_spec.rb
bearcat-1.0.18 spec/bearcat/client/groups_spec.rb
bearcat-1.0.17 spec/bearcat/client/groups_spec.rb
bearcat-1.0.16 spec/bearcat/client/groups_spec.rb
bearcat-1.0.15 spec/bearcat/client/groups_spec.rb
bearcat-1.0.14 spec/bearcat/client/groups_spec.rb