diff options
author | David Yip <yipdw@member.fsf.org> | 2017-11-19 01:30:29 -0600 |
---|---|---|
committer | David Yip <yipdw@member.fsf.org> | 2017-11-19 01:30:29 -0600 |
commit | d083f7741a5996ee24bbdb7cd177e4db2ddfaead (patch) | |
tree | 7c950b5ee0f16b59b7acae023eadd949325fc2d7 /spec/lib/settings | |
parent | bcda3f85ce1473e9285299979a471525b2cd7034 (diff) | |
parent | 08deec4c84f00d241d60a6962806d5abe4638edd (diff) |
Merge remote-tracking branch 'tootsuite/master'
Diffstat (limited to 'spec/lib/settings')
-rw-r--r-- | spec/lib/settings/extend_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/lib/settings/extend_spec.rb b/spec/lib/settings/extend_spec.rb new file mode 100644 index 000000000..83ced4230 --- /dev/null +++ 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 |