-
Unexpected arguments message from a mock in rspec created with an implicit hash (2.7 -> 3.x)
Getting an “unexpected arguments” message from rspec in Ruby 3.0 with the mock was created an implicit hash (one without braces).
-
ERROR: While executing gem … (Gem::DependencyResolutionError) in Ruby 3.1
While doing a gem install, I was getting a Gem::DependencyResolutionError with a resolution that
-
Factory Pattern in Ruby
A discussion came up today discussing how the factory pattern looks in certain languages, and I found myself thinking about how it might look in Ruby. A quick Google resulted in an example that seemed to violate part of the reason for the Factory Pattern in the first place (there was a distinct factory for…