Sha256: 9eee3a92ed36ca48d1a7d2adac8943d4eab597acab781d40f845d7e353b71ef8

Contents?: true

Size: 486 Bytes

Versions: 1

Compression:

Stored size: 486 Bytes

Contents

require_relative "test_helper"

class TestApp < Rulers::Application
  def index
    "Hello!" #Not rendering a view
  end
end

class TestApp < Rulers::Application
  def get_controller_and_action(env)
    [TestController, "index"]
  end
end

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

  def app
    TestApp.new
  end

  def test_request
    get "/example/route"

    assert last_response.ok?
    body = last_response.body
    assert body["Hello"]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rulers_seanfred-0.0.2 test/test_application.rb