This repository was archived by the owner on Apr 17, 2018. It is now read-only.

Description
Using validates_presence_of(:description), I'm getting this error:
Expected errors to include "Description must not be blank" when description is set to nil, got errors: ["Description must not be blank "]
The only difference between the expected and actual error is a space at the end.
Note that if I write my own validation, the actual error message doesn't have a space at the end.
it "should validate the presence of description" do
@robot.description = nil
@robot.valid?
@robot.errors.full_messages.should include("Description must not be blank")
end
How can I either cause the error not to have a space or specify the expected message as having one?