spec/controllers/curate/collections_controller_spec.rb in curate-0.6.5 vs spec/controllers/curate/collections_controller_spec.rb in curate-0.6.6

- old
+ new

@@ -23,10 +23,10 @@ let!(:another_collection) { FactoryGirl.create(:collection, user: another_user) } let!(:public_collection) { FactoryGirl.create(:public_collection)} let!(:generic_work) { FactoryGirl.create(:generic_work, user: user) } it "should show a list of my collections" do get :index - expect(response).to be_successful + expect(response).to redirect_to( catalog_index_path(:'f[generic_type_sim][]' => 'Collection', works: 'mine') ) expect(assigns[:document_list].map(&:id)).to include collection.pid expect(assigns[:document_list].map(&:id)).to_not include another_collection.pid expect(assigns[:document_list].map(&:id)).to_not include public_collection.pid expect(assigns[:document_list].map(&:id)).to_not include generic_work.pid end