spec/util_async_spec.lua
changeset 8686 867ac771fb6e
parent 8684 0c077800cd70
child 10545 6c6ff4509082
--- a/spec/util_async_spec.lua	Fri Mar 23 14:18:27 2018 +0000
+++ b/spec/util_async_spec.lua	Fri Mar 23 14:22:01 2018 +0000
@@ -613,23 +613,4 @@
 			assert.spy(r.watchers.error).was_not.called();
 		end);
 	end);
-
-	describe("#once()", function ()
-		it("should work", function ()
-			local f = spy.new(function ()
-				assert.truthy(async.ready());
-			end);
-			async.once(f);
-			assert.spy(f).was.called();
-			assert.spy(f).was.called_with();
-		end);
-		it("should propagate errors", function ()
-			local function should_error()
-				async.once(function ()
-					error("hello world");
-				end);
-			end;
-			assert.error_matches(should_error, "hello world");
-		end);
-	end);
 end);