require 'helper' describe Bearcat::Client::Modules do before do @client = Bearcat::Client.new(prefix: "http://canvas.instructure.com", token: "test_token") end it "returns course modules" do stub_get(@client, "/api/v1/courses/1/modules").to_return(json_response("modules.json")) modules = @client.course_modules(1) modules.count.should == 3 modules.first['id'].should == 1 end end