Sha256: 65749c1ff76b6e44521d8df75cde2d2c98d7012d83cd666902fcf94027546004

Contents?: true

Size: 354 Bytes

Versions: 15

Compression:

Stored size: 354 Bytes

Contents

require 'spec_helper'

describe 'web/views/check.html.erb', :erb_view => true do

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

    page = render_erb('check.html.erb', binding)
    page.should match(%r{/abc-xyz-01/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/check.html.erb_spec.rb
flapjack-0.7.34 spec/lib/flapjack/gateways/web/views/check.html.erb_spec.rb
flapjack-0.7.33 spec/lib/flapjack/gateways/web/views/check.html.erb_spec.rb
flapjack-0.7.32 spec/lib/flapjack/gateways/web/views/check.html.erb_spec.rb
flapjack-0.7.31 spec/lib/flapjack/gateways/web/views/check.html.erb_spec.rb
flapjack-0.7.30 spec/lib/flapjack/gateways/web/views/check.html.erb_spec.rb
flapjack-0.7.29 spec/lib/flapjack/gateways/web/views/check.html.erb_spec.rb
flapjack-0.7.28 spec/lib/flapjack/gateways/web/views/check.html.erb_spec.rb
flapjack-0.7.27 spec/lib/flapjack/gateways/web/views/check.html.erb_spec.rb
flapjack-0.7.26 spec/lib/flapjack/gateways/web/views/check.html.erb_spec.rb
flapjack-0.7.25 spec/lib/flapjack/gateways/web/views/check.html.erb_spec.rb
flapjack-0.7.22 spec/lib/flapjack/gateways/web/views/check.html.erb_spec.rb
flapjack-0.7.21 spec/lib/flapjack/gateways/web/views/check.html.erb_spec.rb
flapjack-0.7.20 spec/lib/flapjack/gateways/web/views/check.html.erb_spec.rb
flapjack-0.7.19 spec/lib/flapjack/gateways/web/views/check.html.erb_spec.rb