Rename method for clarity, remove outdated specs for OrderPopulator

This commit is contained in:
Rohan Mitchell
2014-01-08 14:14:45 +11:00
parent 20ad906f7a
commit ea3e697b73
2 changed files with 8 additions and 47 deletions

View File

@@ -1,6 +1,6 @@
Spree::OrderPopulator.class_eval do
def populate_with_distribution_validation(from_hash)
@distributor, @order_cycle = orig_distributor_and_order_cycle
@distributor, @order_cycle = distributor_and_order_cycle
# Refactor: We may not need this validation - we can't change distribution here, so
# this validation probably can't fail
@@ -32,7 +32,7 @@ Spree::OrderPopulator.class_eval do
private
def orig_distributor_and_order_cycle
def distributor_and_order_cycle
[@order.distributor, @order.order_cycle]
end