Spec ScopedSettings (#3559)
This commit is contained in:
parent
b0fe58dc69
commit
42844df966
3 changed files with 99 additions and 31 deletions
15
spec/support/examples/lib/settings/settings_extended.rb
Normal file
15
spec/support/examples/lib/settings/settings_extended.rb
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue