News for hackers. Stuff that matters.
Re:RSpec Best Practices by graywh on Wednesday October 03, 2012 @02:23PM (#4608875)
Then write

    collection.length.should eq(2)
But I see nothing wrong with the other once you know how the "have" matcher works. It will even let you write

    it { should have(2).items }
when your subject is set up properly.

There are no comments on this comment yet.