spec/lib/optional/option/enumerable_spec.rb in optional-0.0.6 vs spec/lib/optional/option/enumerable_spec.rb in optional-0.0.7

- old
+ new

@@ -41,17 +41,12 @@ None.collect_concat(&:name).should be_none end end describe "#flat_map" do - it 'works as expected over an array of options' do - [None, Some[3], None, Some[2]].flat_map do |x| - x.map(&:succ) - end.should eq [4,3] - end - it 'also works for a some that returns a nested some' do - x = Some[stub(y: Some[4])] + it 'works for a some that returns a nested some' do + x = Some[stub(:y => Some[4])] x.flat_map(&:y).should eq Some[4] end end describe "#juxt" do