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