diff options
author | Akihiko Odaki (@fn_aki@pawoo.net) <akihiko.odaki.4i@stu.hosei.ac.jp> | 2017-06-05 00:07:39 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-06-04 17:07:39 +0200 |
commit | 42844df966d7f503321c82a1f04a8a9be0210dbf (patch) | |
tree | 887c745bc9021d2378f8de52d279aeffd9978a4f /spec/support/examples/lib/settings/settings_extended.rb | |
parent | b0fe58dc699fd1b2de61b54b8e884783f742c664 (diff) |
Spec ScopedSettings (#3559)
Diffstat (limited to 'spec/support/examples/lib/settings/settings_extended.rb')
-rw-r--r-- | spec/support/examples/lib/settings/settings_extended.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/support/examples/lib/settings/settings_extended.rb b/spec/support/examples/lib/settings/settings_extended.rb new file mode 100644 index 000000000..5a9d34bb0 --- /dev/null +++ b/spec/support/examples/lib/settings/settings_extended.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +shared_examples 'Settings-extended' do + describe 'settings' do + def fabricate + super.settings + end + + def create! + super.settings + end + + it_behaves_like 'ScopedSettings' + end +end |