extend_spec.rb 350 B

12345678910111213141516
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. RSpec.describe Settings::Extend do
  4. class User
  5. include Settings::Extend
  6. end
  7. describe '#settings' do
  8. it 'sets @settings as an instance of Settings::ScopedSettings' do
  9. user = Fabricate(:user)
  10. expect(user.settings).to be_kind_of Settings::ScopedSettings
  11. end
  12. end
  13. end