Skip to content
Snippets Groups Projects
Commit 7d7df877 authored by ysksn's avatar ysksn Committed by Eugen Rochko
Browse files

Add a test for Tag#to_param (#5705)

parent c73a1fb5
No related branches found
No related tags found
No related merge requests found
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment