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

Add a test for Settings::Extend#settings (#5720)

parent 9d9b1aff
No related branches found
No related tags found
No related merge requests found
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe Settings::Extend do
class User
include Settings::Extend
end
describe '#settings' do
it 'sets @settings as an instance of Settings::ScopedSettings' do
user = Fabricate(:user)
expect(user.settings).to be_kind_of Settings::ScopedSettings
end
end
end
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