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 7e62421 commit 852cea6Copy full SHA for 852cea6
spec/mongoid/fields_spec.rb
@@ -368,15 +368,15 @@
368
context 'when using an unknown symbol' do
369
it 'raises InvalidFieldType' do
370
lambda do
371
- klass.field(:test, type: :bogus)
+ klass.field(:test, type: :bogus)
372
end.should raise_error(Mongoid::Errors::InvalidFieldType, /declares a field 'test' with an unknown :type value :bogus/)
373
end
374
375
376
context 'when using an unknown string' do
377
378
379
- klass.field(:test, type: 'bogus')
+ klass.field(:test, type: 'bogus')
380
end.should raise_error(Mongoid::Errors::InvalidFieldType, /declares a field 'test' with an unknown :type value "bogus"/)
381
382
0 commit comments