Pau Perez
cf730f8b0c
Temporarily skip embedded shopfront flaky spec
...
Closes #7129 as discussed on that issue.
2021-03-17 16:06:48 +01:00
Andy Brett
9aa992b700
Merge pull request #7067 from openfoodfoundation/dependabot/bundler/rspec-rails-4.1.2
...
Bump rspec-rails from 4.0.2 to 4.1.2
2021-03-17 07:46:59 -07:00
Andy Brett
1311ff2959
Merge pull request #7136 from coopdevs/better-test-order-mailer
...
Rearrange and extend some OrderMailer unit-tests
2021-03-17 07:33:27 -07:00
Matt-Yorkley
3a5f763bf2
Merge pull request #7107 from filipefurtad0/line_items_controller.spec
...
covers payment_state changes from item deletion
2021-03-17 12:50:52 +01:00
Pau Perez
f56678bcd9
Rearrange and extend some OrderMailer unit-tests
...
This moves them to a more unit-like style where the mailer methods are
the subjects. However, I did so only for the methods that show order
balance and thus we want to be extra sure of their coverage.
2021-03-17 12:09:06 +01:00
Pau Pérez Fabregat
51f63060a4
Merge pull request #6879 from coopdevs/customer-balance-bulk-coop-report
...
Customer balance bulk coop report
2021-03-17 12:08:44 +01:00
Pau Pérez Fabregat
0a1a1c3567
Merge pull request #7137 from andrewpbrett/ci-timezones
...
Fix failing timezone-related specs
2021-03-17 12:03:39 +01:00
Maikel
3a0c9814b8
Merge pull request #7037 from openfoodfoundation/dependabot/bundler/awesome_print-1.9.2
...
Bump awesome_print from 1.8.0 to 1.9.2
2021-03-17 17:26:22 +11:00
dependabot[bot]
4adaa6d28d
Bump rspec-rails from 4.0.2 to 4.1.2
...
Bumps [rspec-rails](https://github.com/rspec/rspec-rails ) from 4.0.2 to 4.1.2.
- [Release notes](https://github.com/rspec/rspec-rails/releases )
- [Changelog](https://github.com/rspec/rspec-rails/blob/main/Changelog.md )
- [Commits](https://github.com/rspec/rspec-rails/compare/v4.0.2...v4.1.2 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-03-16 22:33:54 +00:00
dependabot[bot]
7f594026cd
Bump awesome_print from 1.8.0 to 1.9.2
...
Bumps [awesome_print](https://github.com/awesome-print/awesome_print ) from 1.8.0 to 1.9.2.
- [Release notes](https://github.com/awesome-print/awesome_print/releases )
- [Changelog](https://github.com/awesome-print/awesome_print/blob/master/CHANGELOG.md )
- [Commits](https://github.com/awesome-print/awesome_print/compare/v1.8.0...v1.9.2 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-03-16 22:32:03 +00:00
filipefurtad0
2e870ed7bc
replace update! w/ reload; remove assertion
2021-03-16 22:02:26 +00:00
filipefurtad0
87e4b5e49d
covers payment_state changes from item deletion
2021-03-16 22:02:26 +00:00
Andy Brett
06deab9605
Merge pull request #7084 from openfoodfoundation/dependabot/bundler/acts-as-taggable-on-7.0.0
...
Bump acts-as-taggable-on from 4.0.0 to 7.0.0
2021-03-16 12:31:58 -07:00
Matt-Yorkley
d64fd195c0
Merge pull request #7104 from openfoodfoundation/dependabot/bundler/compass-rails-4.0.0
...
Bump compass-rails from 2.0.1 to 4.0.0
2021-03-16 20:31:49 +01:00
Andy Brett
046a2077f2
check the time, not the printed zone, in the spec
2021-03-16 12:14:27 -07:00
Andy Brett
f9f1bf8331
specify UTC explicitly
2021-03-16 12:00:20 -07:00
Andy Brett
134e017122
Merge pull request #7085 from openfoodfoundation/dependabot/bundler/responders-3.0.1
...
Bump responders from 2.4.1 to 3.0.1
2021-03-16 11:24:28 -07:00
dependabot[bot]
b1b71483de
Bump responders from 2.4.1 to 3.0.1
...
Bumps [responders](https://github.com/heartcombo/responders ) from 2.4.1 to 3.0.1.
- [Release notes](https://github.com/heartcombo/responders/releases )
- [Changelog](https://github.com/heartcombo/responders/blob/master/CHANGELOG.md )
- [Commits](https://github.com/heartcombo/responders/compare/v2.4.1...v3.0.1 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-03-16 17:57:43 +00:00
Andy Brett
0d364c6b69
Merge pull request #7110 from Matt-Yorkley/payment-capture-error
...
Fix payment capture handling in Api::OrdersController
2021-03-16 10:41:43 -07:00
Matt-Yorkley
2ba6a3cc23
Merge pull request #7133 from coopdevs/fix-env-deprecation
...
Fix `env` deprecated in Rails 5.0
2021-03-16 18:29:40 +01:00
Andy Brett
3ff9a0f2a3
Merge pull request #7135 from Matt-Yorkley/paypal-spec-setup
...
Update order totals in paypal test setup
2021-03-16 10:22:48 -07:00
Andy Brett
76940a6a2e
Merge pull request #7134 from coopdevs/feature-test-payments-report
...
Feature-test payments report
2021-03-16 10:18:36 -07:00
Matt-Yorkley
c91f02a94a
Update order totals in paypal test setup
2021-03-16 16:52:30 +00:00
Andy Brett
e8a256ecc5
Merge pull request #7132 from Matt-Yorkley/reload-deprecations
...
Replace deprecated use of :reload argument
2021-03-16 09:31:24 -07:00
Pau Perez
16647006c6
Feature-test payments report
...
This report displays order balances and we'll need this basic
feature-test coverage to ensure it keeps working once we refactor them.
2021-03-16 17:05:31 +01:00
Andy Brett
b0f2688001
Merge pull request #7128 from jibees/7127-terms-&-conditions-test-fails
...
Use timezone as hour and minute offset from UTC in terms_and_conditions_spec.rb
2021-03-16 08:34:18 -07:00
Pau Perez
57101aa5b6
Fix env deprecated in Rails 5.0
...
I found it at the very bottom of the `test-consumer-features` CI build
job. See: https://github.com/rails/rails/issues/23294 .
2021-03-16 15:12:44 +01:00
Matt-Yorkley
e78fb784c6
Merge pull request #7042 from coopdevs/fix-money-object-deprecation-warnings
...
Fix money object deprecation warnings
2021-03-16 14:30:51 +01:00
Matt-Yorkley
5e8d231c49
Merge pull request #7113 from coopdevs/fix-reload-deprecation-on-user-112
...
Fix deprecation warning related to #reload
2021-03-16 14:25:18 +01:00
Matt-Yorkley
80a654cef1
Merge pull request #6938 from Matt-Yorkley/paypal-adjustments-coverage
...
[Adjustments] Paypal adjustments test coverage
2021-03-16 13:16:07 +01:00
Matt-Yorkley
2d9d293405
Replace deprecated use of :reload argument
2021-03-16 12:04:35 +00:00
Jean-Baptiste Bellet
57a65da674
Use timezone as hour and minute offset from UTC
...
- e.g. +0900 (and not e.g. +09:00)
2021-03-16 09:52:45 +01:00
Pau Perez
6fae80bb04
Fix deprecation warning related to #reload
...
This fixes:
```
DEPRECATION WARNING: Passing an argument to force an association to
reload is now deprecated and will be removed in Rails 5.1. Please call
`reload` on the result collection proxy instead. (called from
can_own_more_enterprises? at /usr/src/app/app/models/spree/user.rb:112)
```
This method in particular gets called a lot of times so it'll have it's
cost in performance.
2021-03-16 08:01:25 +01:00
Andy Brett
fbc0d8f352
Merge pull request #7125 from coopdevs/show-build-status-in-prs
...
Run Github CI build on pull_request event
2021-03-15 15:30:26 -07:00
Andy Brett
ae4e8386c4
Merge pull request #7019 from openfoodfoundation/dependabot/bundler/monetize-1.11.0
...
Bump monetize from 1.10.0 to 1.11.0
2021-03-15 15:13:27 -07:00
Andy Brett
ffe9d4737c
Merge pull request #7114 from coopdevs/extract-spec-file
...
Move invoice-related specs to their own file
2021-03-15 15:11:14 -07:00
Pau Pérez Fabregat
8a359ba1e4
Merge pull request #7086 from Matt-Yorkley/adjustments-index
...
[Adjustments] Add index on spree_adjustments.order_id
v3.6-beta
2021-03-15 21:52:40 +01:00
Pau Perez
e952664a14
Run build on pull_request event
...
As is, we're seeing builds almost only on merge commits and not on
others. Also, the build status is not displayed at the bottom of the
PR.
Once we see this fixed and have a better understanding, we can decide
whether or not we remove the `push` event. I guess both we'll be needed.
2021-03-15 20:06:15 +01:00
Pau Pérez Fabregat
7b6e94057c
Merge pull request #7119 from Matt-Yorkley/flaky-timezones
...
Allow timezone from ENV vars, but use UTC as default
2021-03-15 17:53:15 +01:00
Matt-Yorkley
c045efb89d
Merge pull request #7112 from Matt-Yorkley/admin-adjustments-controller
...
Ensure order association is set correctly when adding admin adjustments
2021-03-15 16:51:10 +01:00
Matt-Yorkley
4d7029f0c9
Allow timezone from ENV vars, but use UTC as default
2021-03-15 14:55:22 +00:00
Matt-Yorkley
657291df90
Update order total when editing admin adjustments
2021-03-15 11:46:14 +00:00
Pau Perez
7a3121b624
Move invoice-related specs to their own file
...
The `Spree::Admin::OrdersController`'s test file quite long (as well as
the controller itself) but it'll grow more in the upcoming commits.
That's just a symptom of that controller having too many
responsibilities. It does much more than CRUD on `Spree::Order` (the
Rails convention).
Things like invoices are an entity on their own and would better fit
into a `InvoicesController`. Hopefully, splitting up the tests is hint
for the next dev to do that.
2021-03-15 12:45:27 +01:00
Pau Pérez Fabregat
162ae4ff24
Merge pull request #7103 from andrewpbrett/update-ci
...
Combine model jobs in CI
2021-03-15 12:29:09 +01:00
Matt-Yorkley
3219ea231d
Ensure order association is set correctly when adding admin adjustments
2021-03-15 11:18:14 +00:00
Matt-Yorkley
5354c63d9a
Fix payment capture handling in Api::OrdersController
...
Fixes:
NoMethodError: undefined method `t' for #<Api::OrdersController:0x0000000013834290>
Location
app/controllers/api/orders_controller.rb:50 - payment_capture_failed
2021-03-15 10:36:07 +00:00
Pau Pérez Fabregat
71aec23c0d
Merge pull request #7064 from coopdevs/abstract-order-balance
...
Abstract order balance in a simple PORO
2021-03-15 11:35:45 +01:00
dependabot[bot]
1fcc77dbe7
Bump acts-as-taggable-on from 4.0.0 to 7.0.0
...
Bumps [acts-as-taggable-on](https://github.com/mbleigh/acts-as-taggable-on ) from 4.0.0 to 7.0.0.
- [Release notes](https://github.com/mbleigh/acts-as-taggable-on/releases )
- [Changelog](https://github.com/mbleigh/acts-as-taggable-on/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mbleigh/acts-as-taggable-on/compare/v4.0.0...v7.0.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-03-14 18:47:23 +00:00
dependabot[bot]
492858ae1f
Bump compass-rails from 2.0.1 to 4.0.0
...
Bumps [compass-rails](https://github.com/Compass/compass-rails ) from 2.0.1 to 4.0.0.
- [Release notes](https://github.com/Compass/compass-rails/releases )
- [Changelog](https://github.com/Compass/compass-rails/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Compass/compass-rails/commits )
Signed-off-by: dependabot[bot] <support@github.com >
2021-03-14 14:21:13 +00:00
dependabot[bot]
431536e8a6
Bump monetize from 1.10.0 to 1.11.0
...
Bumps [monetize](https://github.com/RubyMoney/monetize ) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/RubyMoney/monetize/releases )
- [Changelog](https://github.com/RubyMoney/monetize/blob/main/CHANGELOG.md )
- [Commits](https://github.com/RubyMoney/monetize/commits/v1.11.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-03-14 14:21:03 +00:00