lib/henry/task/rspec_task.rb in henry-container-0.0.15 vs lib/henry/task/rspec_task.rb in henry-container-0.0.16
- old
+ new
@@ -25,20 +25,25 @@
Rake.application['spec'].invoke
Process.kill(:SIGINT, tail_pid)
{
- code:0,
- message:"OK",
- data:File.open('rspec.out', 'r').read,
- stacktrace:nil
+ name: self.name,
+ code: 'OK',
+ message: 'OK',
+ returnedData: {
+ output: File.open('rspec.out', 'r').read
+ }
}
rescue Exception => e
{
- code:2,
- message:e.message,
- data:File.open('rspec.out', 'r').read,
- stacktrace:e.backtrace
+ name: self.name,
+ code: 'ERROR',
+ message: 'ERROR',
+ returnedData: {
+ output: File.open('rspec.out', 'r').read,
+ backtrace: e.message
+ }
}
end
end
end