lib/soaspec/template_reader.rb in soaspec-0.2.8 vs lib/soaspec/template_reader.rb in soaspec-0.2.9

- old
+ new

@@ -19,9 +19,10 @@ raise "Cannot see file at #{file_location}. "\ "Global folder is '#{Soaspec.template_folder}' and filename is '#{template_name}'" end request_body = File.read file_location raise "Template at #{file_location} not parsed correctly" if request_body.strip.empty? + ERB.new(request_body).result(binding) end end -end \ No newline at end of file +end