Sha256: 8d2bbc552a7422f82dc7fcd47717232871735095a43a536097e711612936f216
Contents?: true
Size: 437 Bytes
Versions: 2
Compression:
Stored size: 437 Bytes
Contents
require 'spec_helper' describe UnobtrusiveFlash::ControllerMixin do describe '.sanitize_flash' do it 'should escape messages that are not html safe' do expect(described_class.sanitize_flash({:foo => '<bar>'})).to eq([[:foo, '<bar>']]) end it 'should not escape messages that are html safe' do expect(described_class.sanitize_flash({:foo => '<bar>'.html_safe})).to eq([[:foo, '<bar>']]) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
unobtrusive_flash-3.2.0 | spec/sanitize_flash_spec.rb |
unobtrusive_flash-3.1.0 | spec/sanitize_flash_spec.rb |