spec/bearcat/client/module_items_spec.rb in bearcat-1.3.21 vs spec/bearcat/client/module_items_spec.rb in bearcat-1.3.22
- old
+ new
@@ -11,6 +11,14 @@
items.count.should == 3
items.members[0]['id'].should == 1358
items.members[0]['type'].should == 'Page'
end
-end
\ No newline at end of file
+ describe '#module_item' do
+ it 'returns a module' do
+ stub_get(@client, '/api/v1/courses/1/modules/1/items/2').to_return(json_response('module_item.json'))
+ item = @client.module_item(1, 1, 2)
+ expect(item['id']).to eq(2)
+ end
+ end
+
+end