Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我有own?方法的模型中,我可以在 rspec 中使用它而不是 rspecbe_own吗?不编写自定义匹配器?
own?
be_own
是的。这很容易:
model.own?.should == true