Robert Fletcher

Results 66 issues of Robert Fletcher

RubyForge doesn't work anymore, so this points to the Github page.

## Meta Capybara Version: 3.0 - 3.33.0 Driver Information (and browser if relevant): Not relevant, using `Capybara.string` ## Expected Behavior `Capybara.string` should ignore newlines (`\n`) in content. In Capybara 2.18...

We're getting an error when we have `cache_classes = true` on CI with Rails 7.0.1: ``` RuntimeError: DescendantsTracker.clear was disabled because config.cache_classes = true # /home/circleci/app/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.1/lib/active_support/descendants_tracker.rb:119:in `clear' # /home/circleci/app/vendor/bundle/ruby/2.7.0/gems/with_model-2.1.6/lib/with_model/model.rb:59:in `cleanup_descendants_tracking'...

## 🚀 Feature Proposal The `restoreMocks`, `resetMocks`, and `clearMocks` settings should be enabled by default. ## Motivation We've spent a lot of time debugging tests due to mocks leaking behavior...

:rocket: Feature Request

When passing a custom configuration option to RuboCop via the programmatic API ([a la haml-lint](https://github.com/sds/haml-lint/issues/372#issuecomment-1254329754)) it is significantly slower than using the default configuration. -------- ## Expected behavior There should...

When I render an object directly it tells me its associated partial is not used. ``` haml / renders /app/views/tasks/_task.html.haml = render @task / or = render task ```

I'm not sure if [this issue](https://github.com/sds/haml-lint/issues/360) is reporting the same thing, but the Ruby 3.1 hash shorthand does not appear to be valid syntax for HAML attributes, but `haml-lint` reports...

question

Using the `placeholder` attribute [is considered an anti-pattern](https://www.smashingmagazine.com/2018/06/placeholder-attribute/) as it has a lot of accessibility drawbacks. It would be great if we could enforce not using this in our haml...

enhancement
contributions-welcome

Rails automatically [grabs email the email subject](https://guides.rubyonrails.org/i18n.html#translations-for-action-mailer-e-mail-subjects) from I18n files without needing to be explicitly referenced in code. However, `i18n-tasks` reports it as an unused translation: ``` Unused keys (1)...

When we have a `default` localization format we can use it without needing to pass the key: ```yml en: time: formats: default: '%m/%d/%Y %-I:%M%P %Z' ``` Then: ```rb l(record.created_at) ```...