Sha256: b99860d30f03ffc487a42385774a6a2bd0f4354bb9d3f303d12656fe06f43a95

Contents?: true

Size: 372 Bytes

Versions: 12

Compression:

Stored size: 372 Bytes

Contents

require 'spec_helper'

describe 'web/views/index.haml', :haml_view => true do

  it "should escape unsafe check characters in URI parameters" do
    @states = [['abc-xyz-01', 'Disk / Utilisation', '-', '-', '-', false, false, nil, nil]]

    page = render_haml('index.haml', self)
    page.should match(%r{\?entity=abc-xyz-01&check=Disk\+%2F\+Utilisation})
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
flapjack-0.7.1 spec/lib/flapjack/gateways/web/views/index.haml_spec.rb
flapjack-0.7.0 spec/lib/flapjack/gateways/web/views/index.haml_spec.rb
flapjack-0.6.61 spec/lib/flapjack/gateways/web/views/index.haml_spec.rb
flapjack-0.6.60 spec/lib/flapjack/gateways/web/views/index.haml_spec.rb
flapjack-0.6.59 spec/lib/flapjack/gateways/web/views/index.haml_spec.rb
flapjack-0.6.58 spec/lib/flapjack/gateways/web/views/index.haml_spec.rb
flapjack-0.6.57 spec/lib/flapjack/gateways/web/views/index.haml_spec.rb
flapjack-0.6.56 spec/lib/flapjack/gateways/web/views/index.haml_spec.rb
flapjack-0.6.55 spec/lib/flapjack/gateways/web/views/index.haml_spec.rb
flapjack-0.6.54 spec/lib/flapjack/gateways/web/views/index.haml_spec.rb
flapjack-0.6.53 spec/lib/flapjack/gateways/web/views/index.haml_spec.rb
flapjack-0.6.52 spec/lib/flapjack/gateways/web/views/index.haml_spec.rb