Sha256: 4d69905822633123efa7ff49de50473fe2645ab82390b97c7740fc800342878d
Contents?: true
Size: 523 Bytes
Versions: 28
Compression:
Stored size: 523 Bytes
Contents
require 'spec_helper' describe 'web/views/checks.html.erb', :erb_view => true do it "should escape unsafe check characters in URI parameters" do @base_url = 'http://www.example.com/flapjack/' @states = {'abc-xyz-01' => [['Disk / Utilisation', 'OK', 'Looking good', '-', '-', false, false, nil, nil]]} @entities_sorted = ['abc-xyz-01'] @adjective = "all" page = render_erb('checks.html.erb', binding) expect(page).to match(%r{\?entity=abc-xyz-01&check=Disk%20%2F%20Utilisation}) end end
Version data entries
28 entries across 28 versions & 1 rubygems