开发者

Testing with Rspec gives uncomplete messages

开发者 https://www.devze.com 2023-02-01 04:52 出处:网络
I´m testing my rails app using rspec and remarkable. I have the following spec describe Trade do it { should validate_presence_of(:type) }

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

精彩评论

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