Rohan Mitchell
7fc0787e36
OrderCycleFormApplicator sets exchange fees
2013-08-16 10:22:29 +10:00
Rohan Mitchell
f3447f2898
Remove shipping method field from product distributions
2013-08-13 10:14:51 +10:00
Rohan Mitchell
43f482a803
Remove use of deprecated rspec syntax
2013-08-13 09:11:26 +10:00
Rohan Mitchell
ec3e00c128
Refactor LineItem and clients for new fields
2013-08-06 13:47:17 +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
7b1d1f1d42
Add FeatureToggle config to replace ENV['OFW_DEPLOYMENT']
2013-07-22 12:11:52 +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
12fb43e268
DistributionChangeValidator returns an empty array when distributor and order cycle are both nil
2013-06-17 16:01:10 +10:00
Rohan Mitchell
705af41684
DistributionChangeValidator finds variants distributed by product distribution when order cycle is nil
2013-06-17 15:06:20 +10:00
Rohan Mitchell
be29974dd8
DistributionChangeValidator checks if an order can change to a specified new distributION
2013-06-17 15:00:19 +10:00
Rohan Mitchell
17103a8b0c
Remove DistributionChangeValidator#can_change_distributor? method
2013-06-17 14:00:39 +10:00
Rohan Mitchell
cbeffaced1
Configure Travis, remove spork, add simplecov, add turbo sprokets.
...
Add travis config
(cherry picked from commit e3fdb12289 )
Only build on Ruby 1.9.3
(cherry picked from commit 719ef386bf )
Exclude pry from CI build
(cherry picked from commit d60935c800 )
Conflicts:
Gemfile
Attempt 2
(cherry picked from commit 2b19253895 )
Conflicts:
Gemfile.lock
Configure travis for postgres
(cherry picked from commit 3a441cd7d9 )
Fix migrations that fail because of coupling to changed/removed models
(cherry picked from commit b030793f15 )
Set up xvfb for Travis
(cherry picked from commit cdc3ab09a1 )
Add a failing test to test travis
(cherry picked from commit 72aa8fe5e5 )
Revert "Add a failing test to test travis"
This reverts commit 72aa8fe5e5 .
(cherry picked from commit bd5533e2b1 )
Add simplecov
(cherry picked from commit 5089d3bb22 )
Conflicts:
Gemfile.lock
Add turbo sprockets for faster asset precompile
(cherry picked from commit 3e6c56a638 )
Remove spork
(cherry picked from commit ed7bded642 )
Conflicts:
spec/spec_helper.rb
Remove more spork-specific things, remove unused cuc config from zeus
(cherry picked from commit fa11ff8982 )
Ensure order decorator is required, fix test fragility
(cherry picked from commit 1e94f88c5e )
2013-06-07 16:23:24 +10:00
Rohan Mitchell
661ce4e597
Add to cart page does not allow the user to add a product from an order cycle that cannot supply the cart's products
2013-06-04 10:26:13 +10:00
Rohan Mitchell
fbac41b060
Add DistributionChangeValidator#available_order_cycles, analagous to available_distributors
2013-05-28 13:51:52 +10:00
Rohan Mitchell
fb5c050b48
Refactor DistributionChangeValidator#available_distributors specs
2013-05-28 13:44:17 +10:00
Rohan Mitchell
11755346ce
DistributionChangeValidator finds available order cycles for a product
2013-05-28 13:40:13 +10:00
Rohan Mitchell
46fd94eded
Fix minor test fail
2013-05-28 13:01:48 +10:00
Rohan Mitchell
0e08829a29
Rename DistributorChangeValidator to DistributionChangeValidator in preparation for expansion to include order cycles
2013-05-28 12:32:52 +10:00
Rohan Mitchell
a2abcaf7bd
Push product_compatible_with_current_order and available_distributors_for down to DistributorChangeValidator, add tests
2013-05-27 13:50:33 +10:00
Rohan Mitchell
a21783c814
Allow changing distributor when there are alternate distributors available that can service the cart's order
2013-05-27 13:11:30 +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
f95c6a2386
Extract stub building into private method
2013-04-05 14:11:31 +11:00
Rohan Mitchell
e735a709bf
SplitProductsByDistribution deals with order cycles, and is tested by stubs
2013-04-05 14:05:30 +11:00
Rohan Mitchell
cf4fe269d1
Add specs for splitting products by various distribution options
2013-04-05 11:41:37 +11:00
Rohan Mitchell
b3976bfbd0
Rename SplitProductsByDistributor to SplitProductsByDistribution
2013-04-05 11:08:19 +11:00
Rohan Mitchell
711f769bcd
Remove QueriesProductDistribution - replaced by Product and Enterprise scopes
2013-03-08 16:57:54 +11:00
Rohan Mitchell
265336b70c
When looking up distributors for sidebar, include both those in ProductDistributions and in OrderCycles
2013-03-08 15:18:53 +11:00
Rohan Mitchell
bd5533e2b1
Revert "Add a failing test to test travis"
...
This reverts commit 72aa8fe5e5 .
2013-02-24 20:22:37 +11:00
Rohan Mitchell
72aa8fe5e5
Add a failing test to test travis
2013-02-24 19:57:57 +11:00
Rohan Mitchell
fec81b7ed4
Fix failing specs after merge
2013-01-22 11:34:43 +11:00
Rohan Mitchell
f2f3bbd3ed
Merge branch 'order-cycles-exchange-products'
...
Conflicts:
Gemfile.lock
2013-01-22 10:40:56 +11:00
Rohan Mitchell
83e3c6815d
Merge branch 'checkout-changes'
...
Conflicts:
.rvmrc
app/helpers/application_helper.rb
2013-01-22 10:30:51 +11:00
Rohan Mitchell
ae93d02c9c
OrderCycleFormApplicator applies outgoing exchange collection details
2013-01-18 14:23:42 +11:00
Rohan Mitchell
983ba92dea
OrderCycleFormApplicator deals with outgoing exchanges
2013-01-18 11:22:42 +11:00
Rohan Mitchell
12dad2468d
Reorder specs
2013-01-17 15:13:41 +11:00
Rohan Mitchell
e46d61075e
Simplify field naming
2013-01-10 15:33:56 +11:00
Rohan Mitchell
d27ef76ead
Load exchange variants from correct attr
2013-01-10 11:27:39 +11:00
Rohan Mitchell
62a7a0db7c
Add spec for updating exchanges
2013-01-09 10:50:17 +11:00
Rohan Mitchell
f8c74e8b92
Make most OrderCycleFormApplicator methods private, add spec for adding exchanges
2013-01-09 10:41:09 +11:00
Rohan Mitchell
e53fff8e31
Split OrderCycleFormApplicator specs into unit / integration, add integration spec for exchange_exists?
2013-01-09 10:18:06 +11:00
Rohan Mitchell
ba19db3ccf
Add or update exchange variants when creating or updating order cycles
2013-01-09 10:06:51 +11:00
Rohan Mitchell
04297d928e
Correct naming of OrderCycleFormApplicator spec
2013-01-09 09:16:25 +11:00
Rob H
8a37b4e918
Push validation logic for changing distributor down into lib class
2012-12-14 11:02:01 +11:00
Rohan Mitchell
07eac918a3
OrderCycleFormApplicator deletes removed exchanges
2012-11-30 17:08:57 +11:00
Rohan Mitchell
5655b0b7a5
OrderCycleFormApplicator updates existing exchanges
2012-11-30 16:07:21 +11:00
Rohan Mitchell
8736254f12
Create incoming exchanges on save
2012-11-29 11:52:34 +11:00
Rohan Mitchell
2c8d313c77
Create OrderCycleFormApplicator, for interfacing between front-end form and OrderCycle exchanges model.
2012-11-29 11:40:15 +11:00
Rohan Mitchell
3a116dc13d
Fix product filtering on supplier and distributor pages
2012-11-01 16:37:12 +11:00
Rohan Mitchell
6d84cf7613
Merge branch 'master' into enterprises
...
Conflicts:
app/controllers/enterprises_controller.rb
app/views/spree/checkout/_distributor.html.haml
db/schema.rb
spec/lib/open_food_web/group_buy_report_spec.rb
2012-11-01 11:02:02 +11:00
Rohan Mitchell
682c09f516
Remove use of old Distributor model, fix before all not cleaning db
2012-11-01 10:05:39 +11:00