0
当validate_presence_of
使用早该/ RSpec的我得到这些长期和重复的代码块多属性测试喜欢你的:RSpec的/早该validate_presence_of多个属性语法
it { should validate_presence_of(:text) }
it { should validate_presence_of(:user) }
it { should validate_presence_of(:commentable) }
[...]
有没有办法变干这个吗?这样的事情:
it { should validate_presence_of(:text, :user, :commentable,...) }