Add extra spec

This commit is contained in:
2013-03-11 22:40:51 +01:00
parent 4bd29e4078
commit b9fe340645
@@ -14,6 +14,12 @@ describe Suppliers::ListsController do
assigns(:lists).should eq([list]) assigns(:lists).should eq([list])
end end
it "has pagination options if show_all is given" do
list = create :list, supplier: @supplier
get :index
assigns(:lists).should respond_to :num_pages
end
it "does not include lists from another supplier" do it "does not include lists from another supplier" do
list1 = create :list, supplier: @supplier list1 = create :list, supplier: @supplier
list2 = create :list list2 = create :list