-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support fixture class derivation when a model_class is specified
- Loading branch information
1 parent
b94e574
commit 389170c
Showing
3 changed files
with
80 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# typed: strict | ||
|
||
# ActiveRecord::TestFixtures can't be loaded outside of a Rails application | ||
|
||
class ActiveRecord::FixtureSet | ||
sig { params(name: String).returns(String) } | ||
def self.default_fixture_model_name(name); end | ||
end | ||
|
||
class ActiveRecord::FixtureSet::File | ||
sig { returns(T.nilable(String)) } | ||
def modle_class; end | ||
|
||
sig params(filename: String, blk: T.proc.params(arg0: ActiveRecord::FixtureSet::File).void) | ||
def self.open(filename, &block); end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters