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

Fix tests after two conflicting merges #4249

Merged
merged 1 commit into from
Jan 25, 2022

Conversation

waiting-for-dev
Copy link
Contributor

PR #4243 (19800b7) changed the "in the prices" RSpec's context of the
backend/spec/features/admin/products/pricing_spec.rb to visit the
prices page in a subject instead of a before block. The reason is
that the former needs to be called explicitly, and we wanted it to be
called after the pagination was stubbed in a new test (see
https://github.com/tvdeyen/solidus/blob/12864a8aa578339173428cf4e1cd8f3f65bbc418/backend/spec/features/admin/products/pricing_spec.rb#L85-L89).
All the other tests within that context were updated accordingly to call
subject manually.

On the other side, #4244 (218229d)
added new tests within the same RSpec's context, still using the version
with before.

Once both commits have been merged, we need to update the new tests from #4244 to call subject.

PR solidusio#4243 (19800b7) changed the `"in the
prices"` RSpec's context of the
`backend/spec/features/admin/products/pricing_spec.rb` to visit the
prices page in a `subject` instead of a `before` block. The reason is
that the former needs to be called explicitly, and we wanted it to be
called after the pagination was stubbed in a new test (see
https://github.com/tvdeyen/solidus/blob/12864a8aa578339173428cf4e1cd8f3f65bbc418/backend/spec/features/admin/products/pricing_spec.rb#L85-L89).
All the other tests within that context were updated accordingly to call
`subject` manually.

On the other side, solidusio#4244 (218229d)
added new tests within the same RSpec's context, still using the version
with `before`.

Once both commits have been merged, we need to update the new tests from solidusio#4244 to call `subject`.
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Thank you very much

Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

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

My fault at merging without asking for a rebase. Thanks @waiting-for-dev!

@kennyadsl kennyadsl merged commit f524772 into solidusio:master Jan 25, 2022
@kennyadsl kennyadsl deleted the waiting-for-dev/fix_ci branch January 25, 2022 09:16
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.

4 participants