Rohan Mitchell
26c3b80e87
Reverse unintentional changes to database.yml and db/schema.rb
2013-06-14 11:05:56 +10:00
David Cook
1a06b53b21
More verbose sign in error message
2013-06-13 16:29:45 +10:00
David Cook
203232de27
Disable as this has now been incorporated into move_save_checkout_button
2013-06-13 12:30:35 +10:00
David Cook
aa468140ac
Move save/process button to side on checkout pages
2013-06-13 12:29:34 +10:00
Rohan Mitchell
5e120b35aa
Ensure orders controller decorator is loaded, fixes home controller test failures
2013-06-13 07:57:03 +10:00
David Cook
30253ffd07
align actions column left for better usability
2013-06-12 15:51:07 +10:00
David Cook
017275f40e
fix error when order has no payments (ie not yet complete)
2013-06-12 15:40:36 +10:00
David Cook
7381163023
test for cancelled orders in order and distributor report
2013-06-12 15:19:45 +10:00
David Cook
ea3922a023
filter out cancelled orders from the reports
2013-06-12 15:19:14 +10:00
David Cook
415de37a6a
WIP for order spec
2013-06-12 13:33:15 +10:00
David Cook
cf4582c08e
Create respond_override to return user back to the referring page. (But it breaks payments#create respond_with..)
2013-06-12 11:24:49 +10:00
David Cook
2b15f92ab8
fix capture button to link to latest payment
2013-06-12 09:58:44 +10:00
David Cook
269c6ac14f
Use CSS substring selector for selecting Capture link by order number
2013-06-11 17:16:37 +10:00
David Cook
ada95183a2
Start respond_override
2013-06-11 17:09:41 +10:00
David Cook
fb25946acd
Start to write a test spec.. (not complete)
2013-06-11 17:00:07 +10:00
David Cook
df769a2f4c
ensure latest 'payment' object is used for the capture button
2013-06-11 16:57:14 +10:00
David Cook
4967093b72
Add capture button and resize columns
2013-06-11 15:07:41 +10:00
Rohan Mitchell
71ee764d65
Fix travis fails - set deployment before requiring gems, race condition in distributor info spec
2013-06-07 17:08:55 +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
1e94f88c5e
Ensure order decorator is required, fix test fragility
2013-06-07 15:40:03 +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
98f3197c08
WIP Move orders#populate logic to OrderPopulator class
2013-06-05 11:47:47 +10:00
Rohan Mitchell
6670c9543b
Remove spork
...
Conflicts:
Gemfile
Gemfile.lock
2013-06-04 14:04:26 +10:00
Rohan Mitchell
f91e1144e0
Name blank order cycle option
2013-06-04 11:11:13 +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
249e1e013f
Slight wording change to confirmation email
2013-06-04 09:11:49 +10:00
Rohan Mitchell
ed067be530
Do not set site name and logo URLs in initializer, so that they can be set through admin interface
2013-06-04 08:43:35 +10:00
Rohan Mitchell
cb703c2a66
Do not give order cycle choice when there is only one option
2013-05-28 16:35:39 +10:00
Rohan Mitchell
54fe63e7f3
User can add subsequent order cycles product to cart, show order cycle selection in page header along with distributor
2013-05-28 16:20:58 +10:00
Rohan Mitchell
1f9f5efb79
Add first product to cart with order cycle choice
2013-05-28 14:06:52 +10:00
Rohan Mitchell
9ef7da1339
Add OrderCycle#distributed_variants
2013-05-28 14:01:04 +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
3bedfc3d1d
Add OrderCycle distributing_product scope
2013-05-28 13:27:52 +10:00
Rohan Mitchell
46fd94eded
Fix minor test fail
2013-05-28 13:01:48 +10:00
Rohan Mitchell
1b25364160
Cherry-pick c3b2f52: Cache DistributorChangeValidator#all_available_distributors, move Enterprise#available_variants into SQLland - massive render speed improvement
...
Conflicts:
app/models/enterprise.rb
lib/open_food_web/distribution_change_validator.rb
2013-05-28 13:01:07 +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
02561ee252
With order cycle distribution, show error message when adding a product to cart with no distribution chosen
2013-05-28 11:54:46 +10:00
Rohan Mitchell
881bceb4d1
Fill in some missing / incorrect test cases for add to cart
2013-05-27 18:40:06 +10:00
Rohan Mitchell
7b332d0f53
Re-group add to cart specs
2013-05-27 18:12:59 +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
612e6aed2c
Include order cycle distributions in distributor choice when adding product to cart
2013-05-27 13:12:29 +10:00