Sha256: 9fa9da93751749bebca31115c0492cbbe59156558876b6424e3f77b8cddecaa4
Contents?: true
Size: 615 Bytes
Versions: 12
Compression:
Stored size: 615 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') entity = mock('entity') entity.should_receive(:name).twice.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
12 entries across 12 versions & 1 rubygems