spec/bearcat/client/groups_spec.rb in bearcat-1.2.10 vs spec/bearcat/client/groups_spec.rb in bearcat-1.2.11

- old
+ new

@@ -34,6 +34,15 @@ created_group = @client.create_group(2, { name: name }) created_group['name'] == 'created group 1' created_group['context_type'] == 'Course' created_group['group_category']['id'] == 2 end + + it "edits a group" do + name = 'edited group 1' + description = 'edited group 1 description' + stub_put(@client, "/api/v1/groups/1").with(body: { name: name, description: description }).to_return(json_response("edited_group.json")) + edited_group = @client.edit_group(1, { name: name, description: description }) + edited_group['name'] == name + edited_group['description'] == description + end end \ No newline at end of file