logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

extend_spec.rb (350B)


  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