mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
12 lines
350 B
Ruby
12 lines
350 B
Ruby
require 'spec_helper'
|
|
describe ShopHelper do
|
|
|
|
it "should build order cycle select options" do
|
|
d = create(:distributor_enterprise)
|
|
o1 = create(:simple_order_cycle, distributors: [d])
|
|
helper.stub(:current_distributor).and_return d
|
|
|
|
helper.order_cycles_name_and_pickup_times([o1]).should == [[helper.pickup_time(o1), o1.id]]
|
|
end
|
|
end
|