diff --git a/test/worker_spec.rb b/test/worker_spec.rb
index <HASH>..<HASH> 100644
--- a/test/worker_spec.rb
+++ b/test/worker_spec.rb
@@ -30,7 +30,7 @@ describe 'the Worker' do
   end
 
   teardown do
-    @client.close
+    @pusher.close
   end
 
   given 'valid job data is pushed' do
Fixed a bug in the Worker spec