spec/bearcat/client/discussions_spec.rb in bearcat-1.3.23 vs spec/bearcat/client/discussions_spec.rb in bearcat-1.3.24
- old
+ new
@@ -72,6 +72,11 @@
discussions.count.should == 1
discussions[0].class.should eq(Hash)
discussions[0]['id'].should == 3
end
+ it 'returns a single group discussion' do
+ stub_get(@client, "/api/v1/courses/1/discussion_topics/1").to_return(json_response("discussion_topic.json"))
+ discussion = @client.course_discussion('1', '1')
+ expect(discussion['id']).to eq(1)
+ end
end