闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
350 B

  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