test/test_characterizable.rb in characterizable-0.0.8 vs test/test_characterizable.rb in characterizable-0.0.9

- old
+ new

@@ -315,6 +315,13 @@ has :bar end end assert_equal [:bar, :foo], Fickle.characteristics.keys.sort { |a, b| a.to_s <=> b.to_s } end + + should 'allow characterizations to be sliced' do + a = Automobile.new + a.make = 'Ford' + assert_equal({ :make => 'Ford' }, a.characteristics) + assert_equal({}, a.characteristics.slice(:dummy)) + end end