mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 17:06:31 -06:00
DEV: Specify slug name during Category fabrication
This commit is contained in:
parent
19a0bdc0ee
commit
c46cd1bd04
@ -2,7 +2,6 @@
|
||||
|
||||
Fabricator(:category) do
|
||||
name { sequence(:name) { |n| "Amazing Category #{n}" } }
|
||||
slug { sequence(:slug) { |n| "amazing-category-#{n}" } }
|
||||
skip_category_definition true
|
||||
user
|
||||
end
|
||||
|
@ -15,7 +15,7 @@ RSpec.describe ReviewableScoreSerializer do
|
||||
end
|
||||
|
||||
it 'adds a link for category settings' do
|
||||
category = Fabricate.build(:category)
|
||||
category = Fabricate(:category, name: 'Reviewable Category', slug: 'reviewable-category')
|
||||
reviewable.category = category
|
||||
serialized = serialized_score('category')
|
||||
link_url = "#{Discourse.base_url}/c/#{category.slug}/edit/settings"
|
||||
|
Loading…
Reference in New Issue
Block a user