diff --git a/spec/bolt/transport/local_spec.rb b/spec/bolt/transport/local_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/bolt/transport/local_spec.rb
+++ b/spec/bolt/transport/local_spec.rb
@@ -198,8 +198,8 @@ SHELL
       with_task_containing('tasks_test_sensitive', contents, 'both') do |task|
         expect(local.run_task(target, task, arguments).message).to eq(<<SHELL.strip)
 $ecret!
-[1, 2, 3]
-{"k"=>"v"}
+[1,2,3]
+{"k":"v"}
 SHELL
       end
     end
(BOLT-<I>) Updated local transport unit test to check for JSON serialization via environment for Sensitive data