Sha256: 3f367984662a3f3afa73853d518c194660e5c50fb5c1ee4093a7dd8070bc3ff0

Contents?: true

Size: 471 Bytes

Versions: 20

Compression:

Stored size: 471 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
    @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

20 entries across 20 versions & 1 rubygems

Version Path
flapjack-0.9.6 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.9.5 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.9.4 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.9.3 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.9.2 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.9.1 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.9.0 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.8.12 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.8.11 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.8.10 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.8.9 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.8.8 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.8.7 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.8.6 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.8.5 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.8.4 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.8.3 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.8.2 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.8.1 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.8.0 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb