Skip to content

Commit

Permalink
Prefabricated anonymous
Browse files Browse the repository at this point in the history
  • Loading branch information
danielwaterworth authored and eviltrout committed May 7, 2019
1 parent 033d584 commit d3a59a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/components/topic_view_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
fab!(:topic) { Fabricate(:topic) }
fab!(:evil_trout) { Fabricate(:evil_trout) }
fab!(:first_poster) { topic.user }
fab!(:anonymous) { Fabricate(:anonymous) }

let(:topic_view) { TopicView.new(topic.id, evil_trout) }

Expand Down Expand Up @@ -57,7 +58,6 @@
end

describe "when an anonymous user made a post" do
let(:anonymous) { Fabricate(:anonymous) }
let!(:post4) { Fabricate(:post, topic: topic, user: anonymous) }

it "filters out ignored user posts only" do
Expand All @@ -67,7 +67,6 @@
end

describe "when an anonymous (non signed-in) user is viewing a Topic" do
let(:anonymous) { Fabricate(:anonymous) }
let!(:post4) { Fabricate(:post, topic: topic, user: anonymous) }

it "filters out ignored user posts only" do
Expand Down

0 comments on commit d3a59a4

Please sign in to comment.