spec/lib/optional/option_spec.rb in optional-0.0.4 vs spec/lib/optional/option_spec.rb in optional-0.0.5

- old
+ new

@@ -37,6 +37,13 @@ m.some ->(pet) { pet.name == "MOGGIE!" } { :canteloupe } end.should eq :canteloupe end end + it 'can create a some from a passed value' do + Option[4].should eq Some[4] + end + + it 'can create a none from a passed value' do + Option[nil].should be_none + end end