标签: ruby-on-rails ruby rspec
在模型中我有own?方法,我可以在rspec而不是be_own中使用它吗?没有编写自定义匹配器?
own?
be_own
答案 0 :(得分:1)
是。很容易:
model.own?.should == true