mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-25 07:23:43 +01:00
Add a test for Tag#to_param (#5705)
This commit is contained in:
parent
c73a1fb537
commit
7d7df877ef
1 changed files with 7 additions and 0 deletions
|
@ -35,6 +35,13 @@ RSpec.describe Tag, type: :model do
|
|||
end
|
||||
end
|
||||
|
||||
describe '#to_param' do
|
||||
it 'returns name' do
|
||||
tag = Fabricate(:tag, name: 'foo')
|
||||
expect(tag.to_param).to eq 'foo'
|
||||
end
|
||||
end
|
||||
|
||||
describe '.search_for' do
|
||||
it 'finds tag records with matching names' do
|
||||
tag = Fabricate(:tag, name: "match")
|
||||
|
|
Loading…
Reference in a new issue