Skip to content

Add failing spec for view transformer inheritance#247

Closed
cooperka wants to merge 1 commit intoprocore-oss:masterfrom
cooperka:fix-view-transformer-inheritance
Closed

Add failing spec for view transformer inheritance#247
cooperka wants to merge 1 commit intoprocore-oss:masterfrom
cooperka:fix-view-transformer-inheritance

Conversation

@cooperka
Copy link
Copy Markdown

This PR just demonstrates an issue related to #225.

Closing it until an actual fix is ready (which I likely don't have time for now, sorry!)

end

context 'view transformer overrides the class transformer' do
let(:result) { '{"Id":' + obj_id + ',"Company":"Procore"}' }
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[✅ this passes]

subject { blueprint.render(obj, view: :expanded) }

context 'view use the class transformer' do
let(:result) { '{"id":' + obj_id + ',"company":"Procore","full_name":"Meg Ryan"}' }
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[❌ this fails]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant