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

[Spree Upgrade] Fix checkout feature specs #3100

Conversation

HugsDaniel
Copy link
Contributor

What? Why?

Part of #2999

This fix three of the five remaining failing specs in spec/features/consumer/shopping/checkout_spec.rb.

What should we test?

Only two specs fail in spec/features/consumer/shopping/checkout_spec.rb, related to tax calculations.

How is this related to the Spree upgrade?

This is part of fixing the Spree 2 build.

Copy link
Contributor

@luisramos0 luisramos0 left a comment

Choose a reason for hiding this comment

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

Fantastique Hugo!!!

Just the Spree.t thing to fix and good to go.

btw, the only other place where we have Spree.t now is in the shipping_methods pages you de-defaced. maybe we should create an issue for that.

@@ -28,7 +28,7 @@ def edit
associate_user

if @order.insufficient_stock_lines.present?
flash[:error] = t(:spree_inventory_error_flash_for_insufficient_quantity)
flash[:error] = Spree.t(:inventory_error_flash_for_insufficient_quantity)
Copy link
Contributor

Choose a reason for hiding this comment

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

see #3095
you can keep t(:spree_inventory_error_flash_for_insufficient_quantity) and move the translation to our en.yml under spree:

@luisramos0
Copy link
Contributor

just a conflict to be resolved and ready to go!

@luisramos0
Copy link
Contributor

@HugsDaniel I was expecting a rebase here.
@sauloperez will this merge work when we merge this PR into 2-0-stable?

@HugsDaniel HugsDaniel force-pushed the 2999-checkout-feature-specs branch from 20400d7 to d7a148b Compare November 22, 2018 16:01
@luisramos0 luisramos0 merged commit 0052d57 into openfoodfoundation:2-0-stable Nov 22, 2018
@sauloperez
Copy link
Contributor

@sauloperez will this merge work when we merge this PR into 2-0-stable?

Sorry for my late response. Sure it will.

@luisramos0
Copy link
Contributor

meanwhile @HugsDaniel has rebased and Ive merged the rebased version.
thanks for clarifying! now we know it's ok to merge a merge :-)

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.

3 participants