Skip to content

Commit

Permalink
In some cases this spec failed due to non-unique tag name. Used Faker…
Browse files Browse the repository at this point in the history
…'s unique feature to prevent this.
  • Loading branch information
damisul committed Jul 22, 2024
1 parent c81a9d3 commit 9f0f076
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/models/tag_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@

describe 'taggings scopes' do
let(:first) do
described_class.create!(name: Faker::Science.science, creator: create(:user), status: 'approved')
described_class.create!(name: Faker::Science.unique.science, creator: create(:user), status: :approved)
end

let(:second) do
described_class.create!(name: Faker::Science.science, creator: create(:user), status: 'approved')
described_class.create!(name: Faker::Science.unique.science, creator: create(:user), status: :approved)
end

before do
Expand Down

0 comments on commit 9f0f076

Please sign in to comment.