Shopify / Shopify/tapioca

Generator for `ActionView::TestHelper`

Open
#570 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Ruby
Stars
873
Forks
164
Avg merge
4d 27m
Merged PRs (30d)
9

Description

See this Discourse thread.

Rails auto-magically loads all Helper classes which Sorbet isn't picking up. (See here). We should create a Compiler which can properly handle these cases which will help Sorbet be more test-aware.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with action_view/lib/action_view/test_case.rb at line 97 and review the linked Discourse thread to understand how Rails loads Helper classes and why Sorbet misses them. Define a Compiler that handles these cases and makes generated RBI output more test-aware.

Written by the indexing model from the issue text.

Assessment

Tech stack
rails, ruby
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.