Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Support renaming viewmodel classes in migrations #182

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
squash: review formatting nitpick
Co-authored-by: Andrew Childs <[email protected]>
chrisandreae and thefloweringash authored Aug 18, 2022
commit c6899f30c0e6210ca413bbbc1ec432e8e70bee3f
8 changes: 1 addition & 7 deletions test/unit/view_model/active_record/migration_test.rb
Original file line number Diff line number Diff line change
@@ -335,13 +335,7 @@ def new_model
let(:subject) { v1_serialization.deep_dup }

let(:expected_result) do
current_serialization.deep_merge(
{
'data' => {
ViewModel::MIGRATED_ATTRIBUTE => true,
},
},
)
current_serialization.deep_merge({ 'data' => { ViewModel::MIGRATED_ATTRIBUTE => true } })
end

it 'migrates' do