Fix rspec assigns bug
This commit is contained in:
@@ -16,8 +16,9 @@ describe Suppliers::ListsController do
|
|||||||
|
|
||||||
it "has pagination options if show_all is given" do
|
it "has pagination options if show_all is given" do
|
||||||
list = create :list, supplier: @supplier
|
list = create :list, supplier: @supplier
|
||||||
get :index
|
get :index, show_all: 'yes'
|
||||||
assigns(:lists).should respond_to :num_pages
|
#assigns(:lists).should respond_to :num_pages
|
||||||
|
controller.instance_variable_get('@lists').should respond_to :num_pages
|
||||||
end
|
end
|
||||||
|
|
||||||
it "does not include lists from another supplier" do
|
it "does not include lists from another supplier" do
|
||||||
|
|||||||
Reference in New Issue
Block a user