Testing with Rspec gives uncomplete messages
I´m testing my rails app using rspec and remarkable.
I have the following spec
describe Trade do
it { should validate_presence_of(:type) }
end
when I run it I get the failure
'Trade should require {{attributes}} to be set' FAILED
The failure itself is right once my validations are not y开发者_高级运维et implemented but why didn´t rspec replaced {{attributes}} by type?
Env.:
Rails: 2.3.9
Ruby: 1.8.7
Windows Vista
In your remarkable locale file just replace all the {{}}'s with %{}.
精彩评论