spec/bearcat/client/learning_outcomes_spec.rb in bearcat-1.4.12 vs spec/bearcat/client/learning_outcomes_spec.rb in bearcat-1.4.13
- old
+ new
@@ -6,18 +6,18 @@
before do
@client = Bearcat::Client.new(prefix: "http://canvas.instructure.com", token: "test_token")
end
it "returns an individual learning outcome" do
- stub_get(@client, "/api/v1/outcomes/1").to_return(json_response("learning_outcomes.json"))
+ stub_get(@client, "/api/v1/outcomes/1").to_return(json_response("learning_outcome.json"))
outcome = @client.learning_outcome(1)
outcome["id"].should == 1
outcome["context_type"].should == "Course"
outcome["title"].should == "First Outcome"
end
it "updates an individual learning outcome" do
- stub_put(@client, "/api/v1/outcomes/1").to_return(json_response("learning_outcomes.json"))
+ stub_put(@client, "/api/v1/outcomes/1").to_return(json_response("learning_outcome.json"))
outcome = @client.update_learning_outcome(1)
outcome["id"].should == 1
outcome["context_type"].should == "Course"
outcome["title"].should == "First Outcome"
end