Refactor spec

This commit is contained in:
Rohan Mitchell
2014-08-26 09:10:39 +10:00
parent a4be0ff55a
commit 5e8bdce67d
2 changed files with 13 additions and 17 deletions

View File

@@ -4,7 +4,7 @@ module OrderCyclesHelper
end
def coordinating_enterprises
Enterprise.is_distributor.managed_by(spree_current_user).order('name')
Enterprise.is_distributor.managed_by(spree_current_user).by_name
end
def order_cycle_local_remote_class(distributor, order_cycle)