Sha256: 93680fbc55c8d93bc099225078721f08453686b08d64fdfb27d642b2dad12b22

Contents?: true

Size: 345 Bytes

Versions: 29

Compression:

Stored size: 345 Bytes

Contents

require 'spec_helper'

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

  it "should escape unsafe check characters in URIs" do
    @entity = 'abc-xyz-01'
    @check  = 'Disk / Utilisation'
    @last_notifications = {}

    page = render_haml('check.haml', self)
    page.should match(%r{/abc-xyz-01/Disk%20%2F%20Utilisation})
  end

end

Version data entries

29 entries across 29 versions & 1 rubygems

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