lib/pacto/erb_processor.rb in pacto-0.3.0.pre vs lib/pacto/erb_processor.rb in pacto-0.3.0
- old
+ new
@@ -1,8 +1,7 @@
module Pacto
class ERBProcessor
def process(contract, values = {})
- values ||= {}
erb = ERB.new(contract)
erb_result = erb.result hash_binding(values)
Logger.instance.debug "Processed contract: #{erb_result.inspect}"
erb_result
end