Rob Harrington
c7ed27286a
Rubocop: Correct Lint/ParenthesesAsGroupedExpression offences
2017-06-23 17:02:20 +10:00
Rob Harrington
7bb58342fc
Rubocop: Auto-correct Style/EmptyLineBetweenDefs offences
2017-06-23 16:49:08 +10:00
Rob Harrington
b277ff03ea
Rubocop: Auto-correct Style/TrailingBlankLines offences
2017-06-23 16:49:07 +10:00
Enrico Stano
3c1eae1f47
Do not blindly clear the whole Rails cache
2017-06-09 10:32:57 +10:00
enricostano
699da16049
Remove unused spec support method
2017-05-31 15:22:30 +10:00
Rob Harrington
6fc4a297a0
Fixing race condition on link click in spec/features/consumer/shopping/products_spec.rb
2017-05-19 13:15:30 +10:00
Julius Pabrinkis
f25e3bc6f7
Implement with_currency rspec helper for money amounts
2017-05-04 18:02:38 +01:00
Julius Pabrinkis
e63f1c2991
Refactor time and currency symbol getters
2017-05-03 12:59:16 +01:00
Rohan Mitchell
071ba5285d
Put timecop config in spec support
2016-11-25 14:28:05 +11:00
Rohan Mitchell
a1535d6c04
Catch flash messages after fadeout
2016-11-04 09:39:17 +11:00
Maikel Linke
7b2b285ba7
Rescue spec fails within enqueue_job matcher
...
Failing code tested by the enqueue_job matcher made it fail with:
expected ConfirmOrderJob to be enqueued matching {} (??? others enqueued)
That was not helpful and masking the real failure. That failure is now
passed on. The hidden intermittent failure happened in 5% of runs on
Travis.
2016-10-05 14:04:08 +11:00
Rohan Mitchell
b0eebc2e45
Round FlatPercentItemTotal calcs per-item before summing full quantity
2016-08-26 09:28:29 +10:00
Rohan Mitchell
0dc12d8791
Parameterise add_product_to_cart spec helper method
2016-08-26 09:28:29 +10:00
Rohan Mitchell
b13360d2d0
Extract filter helpers from individual spec to spec helper
2016-07-29 11:01:52 +10:00
Maikel Linke
c253d73d11
Refactoring with feedback on pr #1073
2016-06-29 15:46:51 +10:00
Maikel Linke
08fdc8a5bd
Load producers of all or selected order cycles into shop
2016-06-29 12:57:09 +10:00
Maikel Linke
5cd269411d
Trigger order button instead of click
2016-06-10 09:46:56 +10:00
Maikel Linke
21b8445753
Include job name in failure message
2016-05-25 11:58:57 +10:00
Rob Harrington
7e932f091d
Use have_current_path rather than current_path.should ==
2016-05-25 08:10:20 +10:00
Rohan Mitchell
a11696b85e
Include BugHerd script only if configured, and with configured API key
2016-05-04 12:13:03 +10:00
Rohan Mitchell
9e321a63c0
Don't put master in order cycle - we don't do that no more
2016-04-21 09:36:22 +10:00
Rohan Mitchell
977ff7b35d
Fix compatibility issues with new version of select2
2016-02-24 11:26:37 +11:00
Rohan Mitchell
a27e593924
Fix deprecation notices
2016-01-07 10:51:39 +11:00
Rohan Mitchell
76d4fbccf9
Use select2 for order cycle selection
2015-12-11 13:06:58 +11:00
Maikel Linke
229070a76b
Merge branch 'master' of github.com:openfoodfoundation/openfoodnetwork into i18n
2015-11-13 15:20:58 +11:00
Rohan Mitchell
888e4d80ef
Add reliable way to check if cart is dirty. Previous way returned true when cart empty.
2015-11-13 14:03:07 +11:00
Rohan Mitchell
c932d20ef5
Extract multi-sample benchmarking into a helper method
2015-11-13 14:03:07 +11:00
Maikel Linke
5d5fda3a25
Merge remote-tracking branch 'origin/master' into i18n
...
Conflicts:
config/locales/en.yml
2015-11-13 10:07:29 +11:00
Rohan Mitchell
3e7a12cca1
Rename spec support method for faster tab completion on save_and_open_page
2015-11-11 11:53:04 +11:00
Maikel Linke
91fae79be4
Update tests for new label "Login"
2015-10-07 14:06:34 +11:00
Maikel Linke
8b6f5b4a99
Updating spec for new Login label
2015-08-28 18:37:24 +10:00
Rohan Mitchell
b97bbae00e
Remove old selenium-related test helper, remove unused param on handle_js_confirm
2015-07-31 16:56:08 +10:00
Rohan Mitchell
bfeb63c8d7
Ensure that changes to Spree::Config.products_require_tax_category do not leak out of the relevant spec
2015-06-11 14:16:18 +10:00
Maikel Linke
ffa960b02e
Merge remote-tracking branch 'origin/xero-report' into combined/xero-report_show-order-without-distributor
2015-06-05 13:48:24 +10:00
Rohan Mitchell
0737ac8da0
Write an rspec table matcher that gives informative error messages
2015-05-15 12:35:14 +10:00
Rob Harrington
7a4f0e214c
Adding customers index view
2015-05-13 12:44:33 +10:00
Rohan Mitchell
2914990444
Add save_and_open spec helper method to open HTML emails in the browser
2015-04-17 13:40:08 +10:00
Rohan Mitchell
68f0e51c02
Change add_product_to_cart spec helper to use OrderPopulator, reducing inconsistencies in order adjustments, tax etc.
2015-04-17 13:39:09 +10:00
Rohan Mitchell
bb3bdf37cd
Add jobs for user, order and enterprise emails
2015-04-16 16:54:43 +10:00
Rohan Mitchell
af4baabb50
Include DelayedJobHelper for specs
2015-04-16 16:54:43 +10:00
Rohan Mitchell
3bbf42c3e7
WIP: Rename delayed job support to delayed job helper
2015-04-16 16:54:43 +10:00
Rohan Mitchell
530740158c
Tolerate no jobs previously in queue
2015-04-16 16:54:43 +10:00
Rohan Mitchell
771b9e0df5
Improve syntax: take job class as a separate argument
2015-04-16 16:54:43 +10:00
Rohan Mitchell
1d5a4c93e4
Add delayed job testing support, original credit Mat Holroyd and Rohan Mitchell, from CERES Fairfood project
2015-04-16 16:54:43 +10:00
Rob Harrington
1e1d52cc47
Adding 'selected' option to have_select2 matcher
2015-04-02 14:35:39 +11:00
Rohan Mitchell
e2a4b9a898
Fix specs that relied on the old login page which we now redirect to the new page
2015-03-25 12:11:06 +11:00
Rob Harrington
8b241f058b
Login to consumer section in a way that ensures user is not an admin
2015-03-14 11:02:45 +11:00
Rohan Mitchell
1a44e74a9d
When enterprise user creates an enterprise, make it a hub if they have other hubs
2015-03-13 16:06:42 +11:00
Rohan Mitchell
c0030ddb13
use_short_wait can now take a flexible wait time
2015-01-07 16:28:03 +11:00
Rohan Mitchell
370133b875
Fix minor spec issues
2015-01-07 16:06:23 +11:00