Slide 31
Slide 31 text
describe User do
it "finds users who have high ratings" do
high = User.new(:rating => 9,
:password => "test",
:password_confirmation => "test",
:username => "test", :email => "test@test.com")
low = User.new(:rating => 8, :password => "test",
:password_confirmation => "test",
:username => "test", :email => "test@test.com")
User.high_rating.should =~ [high]
end
end
Bad: Lots of noise
Thursday, September 6, 12