TIL: Mocking with Minitest in Ruby 2.0+
I normally work within an RSpec testing envionment, but I definitely enjoy working with more traditional Test::Unit tests when I get the chance. Today I discovered that Minitest, the testing toolkit that has been part of the Ruby standard library since 2.0 has built-in support for mocks and stubs. To use this in a Test::Unit test, simply require "minitest/mocks". Mocking...