summaryrefslogtreecommitdiff
path: root/test/unit/invalid_source_test.rb
blob: 37a38fc75d912dc4f1a34fe735f1aca0da292808 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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