Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "test/unit"
- require "rack_session"
- require "app"
- class AppTest < Test::Unit::TestCase
- def setup
- @app = RackSession.new(Sinatra::Application)
- end
- def test_it_works
- @app.get "/"
- assert_equal 200 , @app.response.status
- assert_equal "Hello World", @app.response.body
- end
- end
Add Comment
Please, Sign In to add comment