logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 8f638a2bf26477f2853f0bef2b68332676fc2720
parent: 9d9b1aff1efc05270c50e94a171258c615c8b09a
Author: ysksn <bluewhale1982@gmail.com>
Date:   Sun, 19 Nov 2017 12:15:32 +0900

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


Diffstat:

Aspec/lib/settings/extend_spec.rb16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/spec/lib/settings/extend_spec.rb b/spec/lib/settings/extend_spec.rb @@ -0,0 +1,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_kind_of Settings::ScopedSettings + end + end +end