spec/bearcat/client/discussions_spec.rb in bearcat-1.2.5 vs spec/bearcat/client/discussions_spec.rb in bearcat-1.2.6

- old
+ new

@@ -10,6 +10,13 @@ stub_post(@client, "/api/v1/groups/2/discussion_topics").with(body: {"title" => title}).to_return(json_response("create_group_discussion.json")) discussion = @client.create_group_discussion(2, {'title' => title}) discussion['title'].should == 'This is a group discussion' end + it 'creates a new course discussion' do + title = "This is a course discussion" + stub_post(@client, "/api/v1/course/2/discussion_topics").with(body: {"title" => title}).to_return(json_response("create_course_discussion.json")) + discussion = @client.create_course_discussion(2, {'title' => title}) + discussion['title'].should == 'This is a course discussion' + end + end