summaryrefslogtreecommitdiff
path: root/test/helpers/test_adapter.rb
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2016-07-02 12:03:46 +0200
committerAzul <azul@riseup.net>2016-07-02 12:03:46 +0200
commitfb2d7e6f8f1fceefbc8964d34369a867eb8f25bb (patch)
tree672ea8bbf03876d65c90ecb1ed152424e74939e1 /test/helpers/test_adapter.rb
parent8a664a39bc3dd77a9c53fa5931f81c2b2b8b7295 (diff)
refactor: replace blocks/yields with returns
This became possible because we now use celluloid. Celluloid handles asynchronity without the need for callbacks or blocks.
Diffstat (limited to 'test/helpers/test_adapter.rb')
-rw-r--r--test/helpers/test_adapter.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/test/helpers/test_adapter.rb b/test/helpers/test_adapter.rb
deleted file mode 100644
index 46d4713..0000000
--- a/test/helpers/test_adapter.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-class TestAdapter
- def initialize(status, content)
- @status = status
- @content = content
- end
-
- def get(url, opts)
- yield @status, @content
- end
-end