diff options
author | Azul <azul@riseup.net> | 2016-09-12 16:34:25 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-09-12 16:34:57 +0200 |
commit | ec875169b0231d84bb8c55bbe91c52b896561f1e (patch) | |
tree | bb4b47a79d32744bda8d66b2c02e9343bfc61698 /lib | |
parent | bc8ddfa1c49b438a563a8a8b9e0472944f71c71c (diff) |
test: separate remote tests into own directory
Dropped the webmock dependency. We have our own http adapter. So we can
stub that to inject a mock. As an added bonus this does not mess with
other http requests.
Also wrote down testing strategy. Not completely implemented yet.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/nickserver/nicknym/source.rb | 2 | ||||
-rw-r--r-- | lib/nickserver/reel_server.rb | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/nickserver/nicknym/source.rb b/lib/nickserver/nicknym/source.rb index 3957cdd..0776a36 100644 --- a/lib/nickserver/nicknym/source.rb +++ b/lib/nickserver/nicknym/source.rb @@ -19,7 +19,7 @@ module Nickserver def get(*args) args[0] = "https://#{args.first}" - adapter.get *args + adapter.get(*args) end end end diff --git a/lib/nickserver/reel_server.rb b/lib/nickserver/reel_server.rb index b681577..d2a95ba 100644 --- a/lib/nickserver/reel_server.rb +++ b/lib/nickserver/reel_server.rb @@ -32,6 +32,7 @@ module Nickserver protected def handler_for(request) + # with reel the request is the responder Dispatcher.new(request) end |