RubyFlow The Ruby and Rails community linklog

Ruby on Rails & RSpec - base test method everyone should know

Mostly, writing a spec you would like to stub classes used in a class that you are testing. We don’t want to hit the database if it’s not needed. Read more at http://pdabrowski.com/blog/ruby-on-rails/testing/rspec-simple-stubs/

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in