mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
17 lines
343 B
Ruby
17 lines
343 B
Ruby
require 'spec_helper'
|
|
require 'spree/core/current_order'
|
|
|
|
describe Spree::DistributorsController do
|
|
include Spree::Core::CurrentOrder
|
|
|
|
it "selects distributors" do
|
|
d = create(:distributor)
|
|
|
|
spree_get :select, :id => d.id
|
|
|
|
order = current_order(false)
|
|
order.distributor.should == d
|
|
response.should be_redirect
|
|
end
|
|
end
|