add spec for {|x,| x} block syntax and fix condition