[rspec-users] Spec for 'an array should not include an item'

Neil Cauldwell lists at ruby-forum.com
Tue Sep 30 13:35:06 EDT 2008

Does anyone know how I can write a spec along the lines of this (but a
working implementation);

   it "should not include inactive users" do
     assigns[:results].should_not include(users(:inactive_user))

I'm a newbie so I'm not capable of explaining why it doesn't work, but
hopefully someone can set me straight.

Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list