spec/lib/abstractivator/enum_spec.rb in abstractivator-0.0.28 vs spec/lib/abstractivator/enum_spec.rb in abstractivator-0.0.29

- old
+ new

@@ -40,9 +40,12 @@ it 'returns the typed version of the value' do x = 'apple' result = Container::Fruits.from(x) expect(result).to eql Container::Fruits::APPLE end + it 'works if the value is already typed' do + expect(Container::Fruits.from(Container::Fruits::APPLE)).to eql Container::Fruits::APPLE + end end end describe '#define_enum' do it 'defines an enum given an array of symbols' do