Ted Johansson
Ted Johansson
I would like to be able to run the tests for a certain file from within that file, without having to switch over to the spec file. I figure since...
Hello! 🙂 Lately I've been working on cleaning up a lot of old code in RuboCop, and one of the most common patterns that has appeared is overly abstruse conditionals,...
### Rationale Breaking control flow is almost certainly the most significant thing that is going on in that line of code, and so it deserves the most prominent spot, at...
We currently have over 3,000 violations over in the core repo. Mostly because this cop doesn't care about our internal DSLs. 🙂 One approach to fixing this could be counting...
## Is your feature request related to a problem? Please describe. When using `#delegate`, ActiveSupport creates a new method on the class, but this method does not respect the visibility...
**Summary:** Type hints for primitive, nested values are not displayed if the parent hash is missing. **Steps to reproduce:** ```ruby Dry::Schema.load_extensions(:hints) class Schema < Dry::Schema::Params define do required(:transaction).hash do required(:currency).filled(:string,...
Firstly, thanks for a great tool. It really saved me a lot of time and eliminated the room for manual errors. 🙇 One thing that would be great would be...
## Problem I currently have the option to either make all blocks anonymous, or make all of them named, but both have their place in the code bases I'm working...
### What is this change? Make admins TL4 by default in tests, foregoing the need to call `refresh_auto_groups` on them.
I will generally use `allow` for setup: ```ruby before do allow(foo).to receive(:bar).and_return(:baz) end ``` and assertion: ```ruby it { expect(foo).to receive(:bar) } ``` If this makes sense, it could make...