Sha256: c8c04b8f938cb5db258b459de660788b8f1abd0fc932ae457a5cf0991d720ecc

Contents?: true

Size: 615 Bytes

Versions: 5

Compression:

Stored size: 615 Bytes

Contents

require 'spec_helper'
require 'chronic_duration'

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

  it "should escape unsafe check characters in URIs" do
    @base_url = 'http://www.example.com/flapjack/'

    @entity = 'abc-xyz-01'
    @check  = 'Disk / Utilisation'
    @last_notifications = {}
    @check_initial_failure_delay = 30
    @check_repeat_failure_delay  = 60
    @check_initial_failure_delay_is_default = true
    @check_repeat_failure_delay_is_default  = true

    page = render_erb('check.html.erb', binding)
    expect(page).to match(%r{/abc-xyz-01/Disk%20%2F%20Utilisation})
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
flapjack-1.6.0 spec/lib/flapjack/gateways/web/views/check.html.erb_spec.rb
flapjack-1.6.0rc4 spec/lib/flapjack/gateways/web/views/check.html.erb_spec.rb
flapjack-1.6.0rc3 spec/lib/flapjack/gateways/web/views/check.html.erb_spec.rb
flapjack-1.6.0rc2 spec/lib/flapjack/gateways/web/views/check.html.erb_spec.rb
flapjack-1.6.0rc1 spec/lib/flapjack/gateways/web/views/check.html.erb_spec.rb