spec/bearcat/client/modules_spec.rb in bearcat-1.3.21 vs spec/bearcat/client/modules_spec.rb in bearcat-1.3.22

- old
+ new

@@ -19,6 +19,14 @@ items = item_sequence["modules"] items.count.should == 3 items.last["id"].should == 3 end -end \ No newline at end of file + describe "#course_module" do + it "returns a course module" do + stub_get(@client, "/api/v1/courses/1/modules/2").to_return(json_response("module.json")) + context_module = @client.course_module(1, 2) + expect(context_module['id']).to eq(2) + end + end +end +