Sha256: 2197ccdf31e22d6193e649e85ade89a926de0c72c8cd22a792972e97c6d5d168

Contents?: true

Size: 410 Bytes

Versions: 23

Compression:

Stored size: 410 Bytes

Contents

require 'spec_helper'

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 = {}

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

end

Version data entries

23 entries across 23 versions & 1 rubygems

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