Skip to content

Commit

Permalink
Minor spec change
Browse files Browse the repository at this point in the history
  • Loading branch information
pmusaraj committed Mar 28, 2024
1 parent 9b500aa commit e150996
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/integration/solved_spec.rb
Expand Up @@ -63,7 +63,7 @@
category_custom_field.save
category
end
fab!(:tag) { Fabricate(:tag, name: "tag1") }
fab!(:tag)
fab!(:topic_unsolved) do
Fabricate(
:custom_topic,
Expand Down Expand Up @@ -136,8 +136,8 @@
expect(result.posts.pluck(:id)).to match_array([post_unsolved.id, post_unsolved_2.id])
end

it "returns the correct results when combining search with a tag" do
result = Search.execute("status:unsolved tag:tag1")
it "returns the filtered results when combining search with a tag" do
result = Search.execute("status:unsolved tag:#{tag.name}")
expect(result.posts.pluck(:id)).to match_array([post_unsolved_2.id])
end
end
Expand Down

0 comments on commit e150996

Please sign in to comment.