开发者

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 %{}.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜