Sha256: 1d73967f5af5e4d07c50d2cca3bd6d12b99c182e0013261a194765fe8e14ebd3
Contents?: true
Size: 675 Bytes
Versions: 17
Compression:
Stored size: 675 Bytes
Contents
require 'spec_helper' describe 'web/views/contact.haml', :haml_view => true do it "should escape unsafe check characters in URI parameters" do @contact = mock('contact') @contact.should_receive(:media) @contact.should_receive(:name).twice.and_return('Aeschylus') @contact.should_receive(:notification_rules) entity = mock('entity') entity.should_receive(:name).exactly(3).times.and_return('abc-xyz-01') checks = ['Disk / Utilisation'] @entities_and_checks = [{:entity => entity, :checks => checks}] page = render_haml('contact.haml', self) page.should match(%r{\?entity=abc-xyz-01&check=Disk\+%2F\+Utilisation}) end end
Version data entries
17 entries across 17 versions & 1 rubygems