File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 5
5
describe Mongoid ::Fields ::FieldTypes do
6
6
7
7
around do |example |
8
- mapping = described_class ::DEFAULT_MAPPING . dup
9
- described_class . instance_variable_set ( :@mapping , mapping )
8
+ described_class . instance_variable_set ( :@mapping , described_class ::DEFAULT_MAPPING . dup )
10
9
example . run
11
- described_class . instance_variable_set ( :@mapping , mapping )
10
+ described_class . instance_variable_set ( :@mapping , described_class :: DEFAULT_MAPPING . dup )
12
11
end
13
12
14
13
describe '.get' do
Original file line number Diff line number Diff line change @@ -1789,10 +1789,9 @@ class DiscriminatorChild2 < DiscriminatorParent
1789
1789
context '.type method' do
1790
1790
around do |example |
1791
1791
klass = Mongoid ::Fields ::FieldTypes
1792
- mapping = klass ::DEFAULT_MAPPING . dup
1793
- klass . instance_variable_set ( :@mapping , mapping )
1792
+ klass . instance_variable_set ( :@mapping , klass ::DEFAULT_MAPPING . dup )
1794
1793
example . run
1795
- klass . instance_variable_set ( :@mapping , mapping )
1794
+ klass . instance_variable_set ( :@mapping , klass :: DEFAULT_MAPPING . dup )
1796
1795
end
1797
1796
1798
1797
it 'can define a custom type' do
You can’t perform that action at this time.
0 commit comments