Sha256: 3c85053b576cd814267f62f5f6b9874063abad85ada772c939d1385b89a20ac4

Contents?: true

Size: 434 Bytes

Versions: 1

Compression:

Stored size: 434 Bytes

Contents

require_relative 'test_helper'

class RhinoAppTest < Test::Unit::TestCase
  include Rack::Test::Methods

  def app
    BestQuotes::Application.new
  end

  def test_get
    get '/'

    assert last_response, "404"
    body = last_response.body
    assert body["not found"]

  end

  def test_request_post
    get '/quotes/a_quote'

    assert last_response.ok?
    body = last_response.body
    assert body["Ruby Version"]
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rhino-framework-0.0.4 test/test_application.rb