mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-06 22:36:07 +00:00
12 lines
365 B
Ruby
12 lines
365 B
Ruby
require 'spec_helper'
|
|
describe ShopHelper, type: :helper 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
|