Andrew Spinks
|
5bccd38b5e
|
Fix tests - don't have feature toggle overrides on when running tests!
|
2013-08-01 15:37:42 +10:00 |
|
Rohan Mitchell
|
122b9b5617
|
Make order cycle coordinator fees many-to-many
|
2013-07-30 11:34:10 +10:00 |
|
Rohan Mitchell
|
7640eb497a
|
Merge branch 'supplied-active-products-on-hand'
Conflicts:
app/controllers/application_controller.rb
app/models/enterprise.rb
app/views/spree/products/_source_sidebar.html.haml
spec/features/consumer/distributors_spec.rb
spec/models/enterprises_spec.rb
|
2013-07-29 11:05:42 +10:00 |
|
Andrew Spinks
|
8e560a59c9
|
Fix selection of itemwise shipping method that broke after the spree upgrade.
|
2013-07-23 15:46:07 +10:00 |
|
Andrew Spinks
|
7cb054f430
|
Merge branch 'master' into order-cycle-selection
Conflicts:
Gemfile
Gemfile.lock
app/controllers/spree/orders_controller_decorator.rb
app/models/enterprise.rb
app/models/spree/order_decorator.rb
app/views/spree/checkout/_other_available_distributors.html.erb
app/views/spree/products/_add_to_cart.html.haml
lib/open_food_web/distributor_change_validator.rb
spec/spec_helper.rb
|
2013-07-23 14:42:57 +10:00 |
|
Rohan Mitchell
|
fe61cddda6
|
Merge branch 'local-organics'
Conflicts:
Gemfile
Gemfile.lock
app/assets/stylesheets/store/variables.css.scss
app/overrides/add_feedback_script.rb
app/views/spree/shared/_order_details_steps_data.html.erb
db/schema.rb
script/rails
spec/spec_helper.rb
|
2013-07-23 11:40:03 +10:00 |
|
David Cook
|
2e2dc216fa
|
WIP: writing order scope test
|
2013-07-22 17:33:50 +10:00 |
|
David Cook
|
9f1a7746a4
|
WIP: start writing order scope test
|
2013-07-22 17:30:01 +10:00 |
|
Rohan Mitchell
|
37a4ad3372
|
Don't 500 when setting cart order cycle to nil
|
2013-06-21 17:04:47 +10:00 |
|
David Cook
|
0525abb084
|
Test that scopes don't return deleted products
|
2013-06-21 15:53:12 +10:00 |
|
David Cook
|
250e76c281
|
Fix incorrect count of enterprises (due to bug in rails issue #5554)
|
2013-06-21 15:10:21 +10:00 |
|
Rohan Mitchell
|
ae43fd1333
|
Set distributor and order cycle in one step, avoiding validation errors. Update spec with new error messages.
|
2013-06-21 11:36:24 +10:00 |
|
Rohan Mitchell
|
72f1c52b3e
|
Update Order model distribution validation - make fully inclusive of order cycles
|
2013-06-21 11:35:42 +10:00 |
|
David Cook
|
2e6387ac60
|
test available_on for distributors
|
2013-06-21 10:52:15 +10:00 |
|
Rohan Mitchell
|
3386da4b4c
|
Validate distribution combination for new products added to cart
|
2013-06-21 10:39:08 +10:00 |
|
Rohan Mitchell
|
cfcc8c3fb2
|
Fix DistributionChangeValidator#variants_available_for_distribution: Do not show products distributed through a different order cycle
|
2013-06-21 10:34:39 +10:00 |
|
Rohan Mitchell
|
b8d0e3f49a
|
OrderPopulator decorator checks cart contents against order cycle as well as distributor
|
2013-06-20 15:13:59 +10:00 |
|
Rohan Mitchell
|
27b5dc071a
|
Order cycle reports on the variants distributed by a particular distributor
|
2013-06-17 14:58:13 +10:00 |
|
Rohan Mitchell
|
da02cb5a93
|
Reorder specs
|
2013-06-17 12:05:46 +10:00 |
|
Rohan Mitchell
|
4e5f0b9963
|
Set potential distributor and order cycle before attempting add to cart, revert on failure
|
2013-06-14 14:57:08 +10:00 |
|
Rohan Mitchell
|
1e0491e90f
|
Add spec for OrderPopulator#check_variant_available_under_distributor
|
2013-06-05 16:00:17 +10:00 |
|
Rohan Mitchell
|
e90077bb09
|
Add spec for OrderPopulator#order_cycle_required_for
|
2013-06-05 15:54:45 +10:00 |
|
Rohan Mitchell
|
4bcae29553
|
Add specs for OrderPopulator#check_distribution_provided_for and distribution_provided_for
|
2013-06-05 15:50:20 +10:00 |
|
Rohan Mitchell
|
f4df69765d
|
Add spec for OrderPopulator#distributor_can_supply_products_in_cart
|
2013-06-05 15:09:11 +10:00 |
|
Rohan Mitchell
|
3724a67d16
|
Add spec for OrderPopulator#set_cart_distributor_and_order_cycle
|
2013-06-05 15:04:42 +10:00 |
|
Rohan Mitchell
|
bfc300a3c2
|
Add spec for OrderPopulator#load_distributor_and_order_cycle
|
2013-06-05 15:01:52 +10:00 |
|
Rohan Mitchell
|
437da7425c
|
Add spec for OrderPopulator#attempt_cart_add
|
2013-06-05 14:55:56 +10:00 |
|
Rohan Mitchell
|
fb4f533976
|
Refactor OrderPopulator, add outside level spec
|
2013-06-05 14:44:57 +10:00 |
|
Rohan Mitchell
|
9ef7da1339
|
Add OrderCycle#distributed_variants
|
2013-05-28 14:01:04 +10:00 |
|
Rohan Mitchell
|
3bedfc3d1d
|
Add OrderCycle distributing_product scope
|
2013-05-28 13:27:52 +10:00 |
|
Rohan Mitchell
|
e3a419993c
|
Work around order cycles not having fees / shipping methods yet - notify bugsnag and provide an undefined shipping method
|
2013-05-27 13:00:12 +10:00 |
|
vagrant
|
4e7f966429
|
add suppliers scope, limit by 5, test
|
2013-05-22 13:07:30 +10:00 |
|
Rohan Mitchell
|
f19ef4ed07
|
Move save button back within form, fix failing test
|
2013-05-20 16:05:25 +10:00 |
|
Rohan Mitchell
|
d65dda4dc5
|
When order distributor changes, update line item shipping method
|
2013-05-18 19:21:01 +10:00 |
|
Rohan Mitchell
|
6e7ee6481d
|
Fetch enterprises that are distributing a product via a product or order cycle distribution
|
2013-04-12 10:13:04 +10:00 |
|
Rohan Mitchell
|
f66ff0f8b1
|
Rename Enterprise#available_variants to distributed_variants to remove ambiguity between supplied/distributed variants
|
2013-04-05 16:51:51 +11:00 |
|
Rohan Mitchell
|
5649a50e28
|
Add tests around Enterprise#available_variants, make it also show variants distributed via an order cycle
|
2013-04-05 16:49:27 +11:00 |
|
Rohan Mitchell
|
3aa48907a6
|
Add per-product tests for membership of distributor or order cycle
|
2013-04-05 12:45:01 +11:00 |
|
Rohan Mitchell
|
b25dcaa92b
|
Enterprise.active_distributors doesn't show distributors from inactive order cycles
|
2013-03-08 16:54:22 +11:00 |
|
Rohan Mitchell
|
2a890f80f4
|
Enterprise.active_distributors doesn't show distributors of out of stock products
|
2013-03-08 16:48:35 +11:00 |
|
Rohan Mitchell
|
13abf9ada7
|
Enterprise.active_distributors doesn't show distributors of unavailable products
|
2013-03-08 16:46:25 +11:00 |
|
Rohan Mitchell
|
cd61bad0b9
|
Enterprise.active_distributors doesn't show distributors of deleted products
|
2013-03-08 16:43:45 +11:00 |
|
Rohan Mitchell
|
00d7fcbfb6
|
Enterprise.active_distributors finds active distributors by order cycles
|
2013-03-08 16:39:42 +11:00 |
|
Rohan Mitchell
|
98cad56e7c
|
Enterprise.active_distributors finds active distributors by product distributions
|
2013-03-08 16:23:45 +11:00 |
|
Rohan Mitchell
|
4b642f8c90
|
Convert to 1.9 hash syntax
|
2013-03-08 15:18:53 +11:00 |
|
Rohan Mitchell
|
43843f05b1
|
WIP: Add edge case tests
|
2013-03-08 15:18:53 +11:00 |
|
Rohan Mitchell
|
d02e8fece5
|
WIP: Spec that no duplicates are shown
|
2013-03-08 15:18:53 +11:00 |
|
Rohan Mitchell
|
dd3c72199a
|
WIP: Add spec for in_order_cycle
|
2013-03-08 15:18:53 +11:00 |
|
Rohan Mitchell
|
6d6390b886
|
WIP: Spec in_supplier_or_distributor
|
2013-03-08 15:18:53 +11:00 |
|
Rohan Mitchell
|
5c64e18360
|
WIP: Refactor tests - positive and negative into single cases for easier managability
|
2013-03-08 15:18:53 +11:00 |
|