spec/lib/abstractivator/enum_spec.rb in abstractivator-0.6.0 vs spec/lib/abstractivator/enum_spec.rb in abstractivator-0.7.0
- old
+ new
@@ -31,10 +31,10 @@
describe '::from_symbol' do
it 'coerces a symbol to an enum value' do
expect(Container::Traditional.from_symbol(:bar)).to eql 'bar'
end
it 'raises an error if no such value exists in the enumeration' do
- expect{Container::Traditional.from_symbol(:baz)}.to raise_error
+ expect{Container::Traditional.from_symbol(:baz)}.to raise_error RuntimeError
end
end
describe '::from' do
it 'returns the typed version of the value' do
result = Container::Fruits.from('apple')