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 2 Upgrade - MailMethod - Fix "undefined mail method" error in specs #2588

Merged

Conversation

luisramos0
Copy link
Contributor

@luisramos0 luisramos0 commented Aug 25, 2018

What? Why?

Closes #2020

Doing exactly what's described in #2020.

What should we test?

All these specs should now have progressed to green or other errors as described below.

Tests not verifiable right now as tests fail with other errors:

  • spec/controllers/admin/subscriptions_controller_spec.rb:627 (2 tests)
  • spec/jobs/subscription_confirm_job_spec.rb:104 (3 tests)

Tests with new errors:

  • spec/controllers/spree/admin/orders_controller_spec.rb:180
    - other error related to email expectations
  • spec/features/consumer/shopping/orders_spec.rb:38
    - other unrelated error
  • spec/mailers/producer_mailer_spec.rb:4 (10 tests)
    - other error related to email expectations
  • spec/mailers/enterprise_mailer_spec.rb:3
    - other error related to email expectations

Green tests:

How is this related to the Spree upgrade?

This is part of getting the spree2 branch build to green.

Dependencies

This is related to PR #2587 and PR #2574 but can go first.

@luisramos0 luisramos0 self-assigned this Aug 25, 2018
@luisramos0 luisramos0 changed the base branch from master to 2-0-stable August 25, 2018 12:14
@luisramos0 luisramos0 changed the title Fix spree2 "undefined mail method" error in specs Spree 2 Upgrade - MailMethod - Fix "undefined mail method" error in specs Aug 25, 2018
@sigmundpetersen
Copy link
Contributor

@luisramos0 please connect your PR's to issues :)

Copy link
Member

@mkllnk mkllnk left a comment

Choose a reason for hiding this comment

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

Nice. Just a detail about the unrelated spec failure.

end
before { order5.cancel }

it "only returns items from non-cancelled orders in the OC, placed by the user at the shop" do
items = oc.items_bought_by_user(user, shop)
items.sort_by!(&:id)
Copy link
Member

Choose a reason for hiding this comment

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

This seems completely unrelated to the task. A separate commit could have been good. And did you know about match_array?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, moved this into a separate commit.
also used match_array instead, thanks, I didnt know it.

@luisramos0 luisramos0 force-pushed the spree2_mail_method_specs branch from c4c48aa to 082f9e4 Compare August 27, 2018 20:04
@mkllnk mkllnk merged commit bce2c1c into openfoodfoundation:2-0-stable Sep 10, 2018
@luisramos0 luisramos0 deleted the spree2_mail_method_specs branch September 10, 2018 08:24
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