That did it! Thanks - I didn't know class methods required that.
Message.stub(:count).and_return(9)
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-tal
count is a class method, so maybe you should try stubbing it on the Message
class
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/1JezJOD5dvsJ.
2 matches
Mail list logo