summaryrefslogtreecommitdiff
path: root/code/spyglass/test/basic_rack_test.rb
blob: bf4c4ed5e36cbf62ed1d214f44ebb568c6ec99dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'helper'
require 'excon'

class BasicRackTest < MiniTest::Unit::TestCase
  def setup
    spyglass
  end
  
  def test_it_responds
    response = Excon.get("http://0.0.0.0:#{PORT}/fuzzy")
    
    assert_equal 200, response.status, "Didn't get the right response code"
    assert_match /Hello world/, response.body, "Didn't get the right response body"
  end
end