spec/controllers/hyrax/users_controller_spec.rb in hyrax-2.0.3 vs spec/controllers/hyrax/users_controller_spec.rb in hyrax-2.1.0.beta1

- old
+ new

@@ -79,10 +79,10 @@ expect(response).to be_successful end end it "uses the base query" do - u3 = FactoryBot.create(:user) + u3 = create(:user) allow(controller).to receive(:base_query).and_return(["email == \"#{u3.email}\""]) get :index expect(assigns[:users]).to include(u3) expect(assigns[:users]).not_to include(u1, u2) u3.destroy