summaryrefslogtreecommitdiff
path: root/test/helpers/test_adapter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/helpers/test_adapter.rb')
-rw-r--r--test/helpers/test_adapter.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/helpers/test_adapter.rb b/test/helpers/test_adapter.rb
new file mode 100644
index 0000000..46d4713
--- /dev/null
+++ b/test/helpers/test_adapter.rb
@@ -0,0 +1,10 @@
+class TestAdapter
+ def initialize(status, content)
+ @status = status
+ @content = content
+ end
+
+ def get(url, opts)
+ yield @status, @content
+ end
+end