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