mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
this class is a model, so it should act like one
This commit is contained in:
parent
cfdda38088
commit
3d9bd2ac94
1 changed files with 3 additions and 0 deletions
|
@ -15,6 +15,9 @@ module TestGenerationPrefix
|
|||
|
||||
ActiveModel::Name.new(klass)
|
||||
end
|
||||
|
||||
def to_model; self; end
|
||||
def persisted?; true; end
|
||||
end
|
||||
|
||||
class WithMountedEngine < ActionDispatch::IntegrationTest
|
||||
|
|
Loading…
Reference in a new issue