Sha256: 986b1496e90219dab3decd37ebffce5b64bc29f22311a58c1c3630ab1866bc88
Contents?: true
Size: 408 Bytes
Versions: 1
Compression:
Stored size: 408 Bytes
Contents
require 'helper' class NameApp include Newark def upcase(str) str.upcase end get '/upcaser' do upcase(params[:name]) end end class TestApp < Minitest::Unit::TestCase include Rack::Test::Methods def app NameApp.new end def test_instance_method_access get '/upcaser', { name: 'mike' } assert last_response.ok? assert_equal 'MIKE', last_response.body end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
newark-0.0.5 | test/test_app.rb |