aboutsummaryrefslogtreecommitdiff
blob: 45b08d4577aa446d482ad5bce344842b0efaa3df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require_relative 'minitest_helper'

class TestWeb < Minitest::Test
	include Rack::Test::Methods

	def app
		RubyTinderbox
	end

	def test_headings
		get '/visualizations'
		assert last_response.ok?
		assert last_response.body.include? '<h1>Visualizations</h1>'
		assert last_response.body.include? '<h2>Number of Packages per Ruby Target</h2>'
		assert last_response.body.include? '<h2>Number of Outdated Gems</h2>'
		assert last_response.body.include? '<h2>Number of Packages per Build Result</h2>'
	end
end