We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f70ef85 commit 685ab96Copy full SHA for 685ab96
spec/mongoid/fields_spec.rb
@@ -1787,9 +1787,12 @@ class DiscriminatorChild2 < DiscriminatorParent
1787
describe '.configure DSL' do
1788
1789
context '.type method' do
1790
- after do
+ around do |example|
1791
klass = Mongoid::Fields::FieldTypes
1792
- klass.instance_variable_set(:@mapping, klass::DEFAULT_MAPPING.dup)
+ mapping = klass::DEFAULT_MAPPING.dup
1793
+ klass.instance_variable_set(:@mapping, mapping)
1794
+ example.run
1795
1796
end
1797
1798
it 'can define a custom type' do
0 commit comments