diff --git a/spec/components/topic_view_spec.rb b/spec/components/topic_view_spec.rb index e01540f4040..60466fbaa04 100644 --- a/spec/components/topic_view_spec.rb +++ b/spec/components/topic_view_spec.rb @@ -996,7 +996,7 @@ RSpec.describe TopicView do subject(:topic_view) { described_class.new(topic, user) } let(:topic) { Fabricate(:topic) } - let(:user) { Fabricate(:user, id: 1) } + let(:user) { Fabricate(:user) } let(:category) { topic.category } before do diff --git a/spec/serializers/post_serializer_spec.rb b/spec/serializers/post_serializer_spec.rb index 3699efbab8a..e00d98725a4 100644 --- a/spec/serializers/post_serializer_spec.rb +++ b/spec/serializers/post_serializer_spec.rb @@ -107,7 +107,7 @@ describe PostSerializer do end context "with a hidden post with add_raw enabled" do - let(:user) { Fabricate(:user, id: -99999) } + let(:user) { Fabricate(:user) } let(:raw) { "Raw contents of the post." } context "with a public post" do