Fix rspec assigns bug

This commit is contained in:
2013-03-14 17:29:49 +01:00
parent d215e4ab8b
commit ddb94728df
@@ -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