diff options
| author | mo khan <mo@mokhan.ca> | 2013-08-28 07:20:13 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2013-08-28 07:20:13 -0600 |
| commit | db1191ec0e7305d684383f8974e2fa437f77ad5a (patch) | |
| tree | 5e27b197dff849d22d8e1f50eb75aa499b16bd06 /code/spyglass/test/basic_rack_test.rb | |
Diffstat (limited to 'code/spyglass/test/basic_rack_test.rb')
| -rw-r--r-- | code/spyglass/test/basic_rack_test.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/code/spyglass/test/basic_rack_test.rb b/code/spyglass/test/basic_rack_test.rb new file mode 100644 index 0000000..bf4c4ed --- /dev/null +++ b/code/spyglass/test/basic_rack_test.rb @@ -0,0 +1,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 |
