In RSpec it is still not possible to have mocks or stubs on all instances of a class, although this has been suggested and it is a feature of the Mocha framework. Stubbing or mocking an object returned by an ActiveRecord belongs_to association (i.e. article.author) won’t do what you expect. Instead of mocking the associated [...]
-
About the blog
This is the blog by the Ruby on Rails developers behind MyNewsdesk.com.
Read more about us →
Visit MyNewsdesk → -
Follow us on Twitter
-
Blogroll
-
Recent Posts
-
Tags
@media Analytics bit.ly design developer e-commerce gchartrb googlecharts Google Charts API google charts on rails hCard html5 i18n JSON litespeed Microformats newsdesk Operator Optimus passenger plugin pluralization postgresql RDFa Rich snippets ruby Ruby on Rails Semantic web SEO Services swedish swedish_pluralize The environment tip Transformator translate twitter usability Validator XML -
Subscribe