RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

minitest-substitute and Rails 7+

Object#with introduced by Rails 7 didn’t play nice with minitest-substitute until now. I’ve therefore dropped the the conflicting “with” on the new minitest-substitute-1.0.0 release in favour of “substitute” to override variables of any kind for the duration of a block in your tests or specs. https://github.com/svoop/minitest-substitute?tab=readme-ov-file#update-from-0xx-to-1xx

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