Sha256: c956ded19676a6af3f5cc454b3ba3564222f9e8c37704d65dedace9f59761818
Contents?: true
Size: 785 Bytes
Versions: 1
Compression:
Stored size: 785 Bytes
Contents
require "test_helper" require "rack/test" require "elefant/web" ENV["RACK_ENV"] = "test" describe "the elefant web interface" do include Rack::Test::Methods def app Elefant::Web end it "redirects to the summary on the index page" do get "/" assert last_response.redirect? assert last_response.location.match("/summary") end it "shows a database summary" do get "/summary" assert last_response.ok? end it "shows activity info" do get "/activity" assert last_response.ok? end it "shows info about indices" do get "/indices" assert last_response.ok? end it "shows table info" do get "/tables" assert last_response.ok? end it "shows size info" do get "/size" assert last_response.ok? end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
elefant-0.0.1 | test/webapp_test.rb |