summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2016-08-29 10:36:05 +0200
committerAzul <azul@riseup.net>2016-08-29 10:36:05 +0200
commit55006b3ce5967fde08081bfd56d56f76dbaf7c53 (patch)
treebe4c5f8f0000fedd5379260222b243db709e5a63 /test
parentbecd26b0bdf44b3625caaa7643914d0379a4fea5 (diff)
cleanup: remove outdated ideas
Lookup and InvalidSource were experiments for a design for the dispatching. Our new dispatcher seems better.
Diffstat (limited to 'test')
-rw-r--r--test/unit/invalid_source_test.rb16
-rw-r--r--test/unit/lookup_test.rb23
2 files changed, 0 insertions, 39 deletions
diff --git a/test/unit/invalid_source_test.rb b/test/unit/invalid_source_test.rb
deleted file mode 100644
index 37a38fc..0000000
--- a/test/unit/invalid_source_test.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-require 'test_helper'
-require 'nickserver/invalid_source'
-
-class Nickserver::InvalidSourceTest < Minitest::Test
-
- def test_query
- adapter.query(nil) do |status, content|
- assert_equal 500, status
- assert_equal "Not a valid address", content
- end
- end
-
- def adapter
- Nickserver::InvalidSource.new
- end
-end
diff --git a/test/unit/lookup_test.rb b/test/unit/lookup_test.rb
deleted file mode 100644
index ac827e0..0000000
--- a/test/unit/lookup_test.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-require 'test_helper'
-require 'minitest/mock'
-require 'nickserver/lookup'
-
-class TestLookup < Nickserver::Lookup
-
- def query
- yield 200, 'yeah'
- end
-
-end
-
-class LookupTest < Minitest::Test
-
- def test_responding
- responder = Minitest::Mock.new
- responder.expect :send_response, nil,
- [{status: 200, content: 'yeah'}]
- lookup = TestLookup.new nil
- lookup.respond_with responder
- responder.verify
- end
-end