spec/lib/optional/option_spec.rb in optional-0.0.6 vs spec/lib/optional/option_spec.rb in optional-0.0.7

- old
+ new

@@ -31,11 +31,11 @@ end.should eq :fishsticks end it "can take a lambda as a guard to match against" do Some[cat].match do |m| - m.some ->(pet) { pet.name == "DOGGIE!" } { :fishsticks } - m.some ->(pet) { pet.name == "MOGGIE!" } { :canteloupe } + m.some lambda { |pet| pet.name == "DOGGIE!" } do :fishsticks end + m.some lambda { |pet| pet.name == "MOGGIE!" } do :canteloupe end end.should eq :canteloupe end end it 'can create a some from a passed value' do