mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
15 lines
351 B
Ruby
15 lines
351 B
Ruby
require 'spec_helper'
|
|
|
|
describe MapController do
|
|
it "loads active distributors" do
|
|
active_distributors = double(:distributors)
|
|
|
|
Enterprise.stub_chain(:distributors_with_active_order_cycles, :ready_for_checkout).
|
|
and_return(active_distributors)
|
|
|
|
get :index
|
|
|
|
assigns(:active_distributors).should == active_distributors
|
|
end
|
|
end
|