Sha256: c5f09397ee2d495ab187cc2e1f99a93ba34aa9025f4325a7f9599db4093dfd30

Contents?: true

Size: 467 Bytes

Versions: 15

Compression:

Stored size: 467 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)
    page.should match(%r{\?entity=abc-xyz-01&check=Disk%20%2F%20Utilisation})
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
flapjack-0.7.35 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.7.34 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.7.33 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.7.32 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.7.31 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.7.30 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.7.29 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.7.28 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.7.27 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.7.26 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.7.25 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.7.22 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.7.21 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.7.20 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
flapjack-0.7.19 spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb