spec/controllers/hyrax/collections_controller_spec.rb in hyrax-3.0.0.pre.beta1 vs spec/controllers/hyrax/collections_controller_spec.rb in hyrax-3.0.0.pre.beta2

- old
+ new

@@ -2,19 +2,19 @@ routes { Hyrax::Engine.routes } let(:user) { create(:user) } let(:other) { build(:user) } let(:collection) do - create(:public_collection, title: ["My collection"], - description: ["My incredibly detailed description of the collection"], - user: user) + create(:public_collection_lw, title: ["My collection"], + description: ["My incredibly detailed description of the collection"], + user: user) end let(:asset1) { create(:work, title: ["First of the Assets"], user: user) } let(:asset2) { create(:work, title: ["Second of the Assets"], user: user) } let(:asset3) { create(:work, title: ["Third of the Assets"], user: user) } - let(:asset4) { create(:collection, title: ["First subcollection"], user: user) } - let(:asset5) { create(:collection, title: ["Second subcollection"], user: user) } + let(:asset4) { build(:collection_lw, title: ["First subcollection"], user: user) } + let(:asset5) { build(:collection_lw, title: ["Second subcollection"], user: user) } let(:unowned_asset) { create(:work, user: other) } let(:collection_attrs) do { title: ['My First Collection'], description: ["The Description\r\n\r\nand more"] } end