Matt-Yorkley
a82bae2a46
Remove Spree resource controller custom callbacks
2021-03-21 13:25:32 +00:00
Andy Brett
40be8e2874
Merge pull request #7157 from Matt-Yorkley/dead-code-billing-names
...
DCOTW: Order#billing_firstname and Order#billing_lastname
2021-03-19 12:12:03 -07:00
Maikel Linke
f80168fbca
Update locales from Transifex
2021-03-19 11:46:30 +11:00
Maikel
16d629e5d2
Merge pull request #7121 from Matt-Yorkley/update-adjustments
...
Update adjustments
2021-03-19 11:25:22 +11:00
Maikel
cf3b32d712
Merge pull request #7158 from openfoodfoundation/transifex
...
Transifex
2021-03-19 11:18:10 +11:00
Maikel
c4370f1583
Merge pull request #7045 from jibees/7008-add-automated-tests-for-unit-price
...
add automated tests for unit price in the shopfront
2021-03-19 11:01:25 +11:00
Andy Brett
80d90700c4
Merge pull request #7142 from coopdevs/tiny-improvement-of-specs
...
Tiny improvement of specs using OutstandingBalance class
2021-03-18 11:34:52 -07:00
Andy Brett
17143d62d6
Merge pull request #7148 from Matt-Yorkley/bump-cancancan
...
Bump cancancan to 1.15.0
2021-03-18 11:29:53 -07:00
Andy Brett
23494c918d
Merge pull request #7143 from cillian/shorter-transient-data-retention-period
...
Reduce retention period of Spree state changes and log entries from 6 to 3 months
2021-03-18 11:28:29 -07:00
Matt-Yorkley
479c1ae6e6
Merge pull request #7062 from mkllnk/6327-terms-of-service
...
Show Terms of Service at checkout if required
2021-03-18 19:16:06 +01:00
Andy Brett
5f9c5c0d90
Merge pull request #7095 from luisramos0/render_plain
...
Raisl 5 - Render plain and render head
2021-03-18 10:56:48 -07:00
Andy Brett
afa7269f48
Merge branch 'master' into render_plain
2021-03-18 10:53:13 -07:00
Transifex-Openfoodnetwork
92da9b717c
Updating translations for config/locales/ar.yml
2021-03-19 04:06:21 +11:00
Matt-Yorkley
2e20078c05
Delete dead code Order#billing_firstname and Order#billing_lastname
...
🔥
2021-03-18 15:54:40 +00:00
Andy Brett
97a63edf50
Merge pull request #7096 from luisramos0/rails-5-2-helper
...
Rails 5.2 add T&Cs helper
2021-03-18 08:16:12 -07:00
Pau Perez
5ee647fd7c
Improve specs
...
Better to rely on a verifying double and reveal our intentions using
`subject` instead.
2021-03-18 15:55:54 +01:00
Pau Pérez Fabregat
a1af16ae72
Merge pull request #7116 from coopdevs/increase-invoice-renderer-coverage
...
Better test InvoiceRenderer
2021-03-18 15:54:43 +01:00
Pau Pérez Fabregat
72b3dbbf44
Merge pull request #7149 from coopdevs/rearrange-order-updater-specs
...
Rearrange order updater tests to make them method-centric
2021-03-18 15:53:37 +01:00
Pau Pérez Fabregat
71b902d9d2
Merge pull request #6980 from drummer83/clean-footer
...
Cleaner and consistent design of front-end footer
2021-03-18 15:53:09 +01:00
Pau Pérez Fabregat
ec41a571ed
Merge pull request #7140 from coopdevs/better-test-subs-mailer
...
Rearrange and cover balance in subs mailer specs
2021-03-18 15:43:41 +01:00
Matt-Yorkley
be3e184651
Merge pull request #6973 from Matt-Yorkley/adjustments-line-item-taxes
...
[Adjustments] Update line item taxes
2021-03-18 11:50:01 +01:00
Matt-Yorkley
3ed8dbe3b3
Merge pull request #7146 from Matt-Yorkley/deprecations
...
Deprecations
2021-03-18 11:25:14 +01:00
Matt-Yorkley
fea6ca5907
Improve update efficiency in migration
2021-03-18 10:07:16 +00:00
Pau Perez
93bc60664a
Fix long lines
2021-03-18 10:00:33 +01:00
Jean-Baptiste Bellet
e9b833c27b
Add unit test for cart page
2021-03-18 09:40:04 +01:00
Jean-Baptiste Bellet
014ffef16c
Add tests about unit price inside the cart sidebar
...
- Test if the question mark icon is present
- Click to show the tooltip
- Another click to hide the tooltip
2021-03-18 09:40:04 +01:00
Jean-Baptiste Bellet
1be1d161d3
Add tests about unit price inside a shopfront
...
- Test that the unit price wrapper is here
- Click on the question mark icon and display the tooltip
- Click outside the question mark icon and hide the toolip
2021-03-18 09:40:04 +01:00
Pau Perez
85446c0dde
Rearrange and cover balance in subs mailer specs
...
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-18 09:18:16 +01:00
Pau Perez
ae9d8020a1
Better test InvoiceRenderer
...
This required a tiny refactoring to enable injecting the renderer. It'll
make it easier to later add the relevant specs related to the order
balance.
2021-03-18 09:17:44 +01:00
Maikel
33f7fa7e32
Merge pull request #7111 from coopdevs/fix-static-assets-deprecation
...
Replace assets config with public_file_server
2021-03-18 13:44:30 +11:00
Maikel
e53c996efd
Merge pull request #7082 from openfoodfoundation/dependabot/bundler/i18n-1.8.9
...
Bump i18n from 1.8.5 to 1.8.9
2021-03-18 13:23:08 +11:00
Matt-Yorkley
751b9349e8
Merge pull request #7015 from andrewpbrett/shopfront-producers
...
Only show primary producers on shopfront list of producers (fix #4218 )
2021-03-17 23:30:42 +01:00
Matt-Yorkley
e62cf67be5
Add more defensive code in TaxRateFinder
2021-03-17 22:23:04 +00:00
Matt-Yorkley
baaee1baab
Update OrderAdjustmentsFetcher
2021-03-17 22:23:04 +00:00
Matt-Yorkley
064f7582cc
Update line_item included taxes
...
Drops use of the `spree_adjustments.included_tax` database field (when summing line item tax), which we are slowly deprecating before eventual removal
2021-03-17 22:23:04 +00:00
Matt-Yorkley
8503e3c5f3
Merge pull request #7023 from Matt-Yorkley/ineligible-efficiency
...
Reduce unnecessary updates in Payment#revoke_adjustment_eligibility
2021-03-17 18:55:01 +01:00
Andy Brett
b8629e847c
Merge pull request #7014 from andrewpbrett/canceled-order-payments
...
Add resumed to list of allowable order states to view the payment tab
2021-03-17 10:46:51 -07:00
Andy Brett
9d33b36799
Merge pull request #7024 from Matt-Yorkley/dead-code-auto-capture
...
DCOTW: Spree::Config[:auto_capture]
2021-03-17 09:31:00 -07:00
Matt-Yorkley
826515874b
Replace some uses of #alias_method_chain
2021-03-17 16:28:19 +00:00
Pau Perez
b48677c624
Rearrange tests to make them method-centric
...
If these are unit tests, it's much easier to find a `describe` with the
method under test and putting all the tests exercising that method
together.
It turns out that `#update_payment_state` is by far the method that we
test the most which leads me to think:
a) this class might be doing too many things.
b) other methods might not be that well covered.
2021-03-17 17:05:19 +01:00
Matt-Yorkley
fbff481a8b
Bump cancancan
...
Conservative bump to a newer version that fixes some deprecated syntax for Rails 5.x (eg #before_filter)
2021-03-17 15:37:15 +00:00
Andy Brett
cd988733c3
Merge pull request #7145 from coopdevs/temp-skip-flaky-spec
...
Temporarily skip embedded shopfront flaky spec
2021-03-17 08:33:53 -07:00
Matt-Yorkley
55b0751c1a
Use strings for class names on associations
2021-03-17 15:15:57 +00:00
Matt-Yorkley
237075dd47
Replace deprecated before_filter syntax
2021-03-17 15:15:26 +00:00
Matt-Yorkley
6c19baeab3
Remove transactional callback config
2021-03-17 15:15:20 +00:00
Pau Pérez Fabregat
571f1b9f87
Merge pull request #7122 from openfoodfoundation/transifex
...
Transifex
2021-03-17 16:08:49 +01:00
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
Pau Perez
8c57ccdaf9
Replace assets test config with public_file_server
...
This fixes the following deprecation warnings
```
DEPRECATION WARNING: `config.serve_static_files` is deprecated and will be removed in Rails 5.1.
Please use `config.public_file_server.enabled = true` instead.
(called from block in <top (required)> at /home/runner/work/openfoodnetwork/openfoodnetwork/config/environments/test.rb:13)
DEPRECATION WARNING: `config.static_cache_control` is deprecated and will be removed in Rails 5.1.
Please use
`config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }`
instead.
(called from block in <top (required)> at /home/runner/work/openfoodnetwork/openfoodnetwork/config/environments/test.rb:14)
```
2021-03-17 15:43:31 +01: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