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