mirror of
https://github.com/discourse/discourse.git
synced 2025-09-04 08:47:37 +08:00
Drop unused tables (#5630)
This commit is contained in:
parent
adc46ac56c
commit
8e48b339fa
5 changed files with 13 additions and 94 deletions
|
@ -1,25 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe CategoryFeaturedUser do
|
||||
|
||||
it { is_expected.to belong_to :category }
|
||||
it { is_expected.to belong_to :user }
|
||||
|
||||
context 'featuring users' do
|
||||
|
||||
before do
|
||||
@category = Fabricate(:category)
|
||||
CategoryFeaturedUser.feature_users_in(@category)
|
||||
end
|
||||
|
||||
it 'has a featured user' do
|
||||
expect(CategoryFeaturedUser.count).to be(1)
|
||||
end
|
||||
|
||||
it 'returns the user via the category association' do
|
||||
expect(@category.featured_users).to be_present
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue