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 f52ed5e commit 7e62421Copy full SHA for 7e62421
spec/mongoid/fields_spec.rb
@@ -1794,15 +1794,15 @@ class DiscriminatorChild2 < DiscriminatorParent
1794
1795
it 'can define a custom type' do
1796
described_class.configure do
1797
- type :my_type, Integer
+ define_type :my_type, Integer
1798
end
1799
1800
expect(described_class::FieldTypes.get(:my_type)).to eq Integer
1801
1802
1803
it 'can override and existing type' do
1804
1805
- type :integer, String
+ define_type :integer, String
1806
1807
1808
expect(described_class::FieldTypes.get(:integer)).to eq String
0 commit comments