spec/enumerable/sum_spec.rb in gorillib-0.1.7 vs spec/enumerable/sum_spec.rb in gorillib-0.1.8
- old
+ new
@@ -1,5 +1,5 @@
-require File.dirname(__FILE__)+'/../spec_helper'
+require File.expand_path('../spec_helper', File.dirname(__FILE__))
require 'gorillib/enumerable/sum'
Payment = Struct.new(:price)
class SummablePayment < Payment
def +(p) self.class.new(price + p.price) end