spec/controllers/hyrax/users_controller_spec.rb in hyrax-2.0.0.rc1 vs spec/controllers/hyrax/users_controller_spec.rb in hyrax-2.0.0.rc2
- old
+ new
@@ -79,10 +79,10 @@
expect(response).to be_successful
end
end
it "uses the base query" do
- u3 = FactoryGirl.create(:user)
+ u3 = FactoryBot.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