about summary refs log tree commit diff
path: root/spec/lib/settings/extend_spec.rb
blob: ea623137b4a170a186bb2e0344c92b433bd1d82d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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_a Settings::ScopedSettings
    end
  end
end