mirror of
https://github.com/discourse/discourse.git
synced 2024-12-26 04:43:42 +08:00
16 lines
401 B
Ruby
16 lines
401 B
Ruby
# frozen_string_literal: true
|
|
|
|
RSpec.describe UserSerializer do
|
|
fab!(:current_user) { Fabricate(:user) }
|
|
|
|
let(:serializer) do
|
|
described_class.new(current_user, scope: Guardian.new(current_user), root: false)
|
|
end
|
|
|
|
describe "#chat_separate_sidebar_mode" do
|
|
it "is present" do
|
|
expect(serializer.as_json[:user_option][:chat_separate_sidebar_mode]).to eq("default")
|
|
end
|
|
end
|
|
end
|