2
0
Fork 0
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:
Gerhard Schlager 2018-03-05 23:27:30 +01:00 committed by Sam
parent adc46ac56c
commit 8e48b339fa
5 changed files with 13 additions and 94 deletions

View file

@ -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