Revision fd06f4f6
Added by Tom Caspy over 8 years ago
test/unit/classification_test.rb | ||
---|---|---|
end
|
||
end
|
||
|
||
test 'type cast allows nil values' do
|
||
key = FactoryGirl.create(:lookup_key)
|
||
assert_nothing_raised do
|
||
@classification.send(:type_cast, key, nil)
|
||
end
|
||
end
|
||
|
||
context 'lookup value type cast error' do
|
||
setup do
|
||
@lookup_key = mock('lookup_key')
|
Also available in: Unified diff
fixes #11415 - using the correct method for classification caster