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
|
||||
list = create :list, supplier: @supplier
|
||||
get :index
|
||||
assigns(:lists).should respond_to :num_pages
|
||||
get :index, show_all: 'yes'
|
||||
#assigns(:lists).should respond_to :num_pages
|
||||
controller.instance_variable_get('@lists').should respond_to :num_pages
|
||||
end
|
||||
|
||||
it "does not include lists from another supplier" do
|
||||
|
||||
Reference in New Issue
Block a user