Add extra spec
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user