lib/tck/lambdas/aws_function.rb in tck-lambdas-0.1.5 vs lib/tck/lambdas/aws_function.rb in tck-lambdas-0.1.6
- old
+ new
@@ -46,14 +46,13 @@
def tmpdir
self.class.tmpdir
end
def zip_file
- @zip_file ||= "#{tmpdir}/#{function_name}.zip"
+ @zip_file ||= "../#{function_name}.zip"
end
def invoke_events_in_directory(event_type)
-puts "lambdas/#{name}/#{event_type}/*.json"
Dir["lambdas/#{name}/test/#{event_type}/*.json"].each do |json_file|
filename = File.basename(json_file)
output = "#{tmpdir}/#{filename}.output"
invoke_lambda json_file, output
yield filename, File.read(output)