aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/template/sanitizers_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Simplified the removal of xpaths in remove_xpaths. Added more tests for ↵Timm2014-06-161-8/+11
| | | | remove_xpaths.
* Renamed: remove_xpaths tests no longer prefixed with sanitizer.Timm2014-06-161-6/+6
|
* Changed: remove_xpaths called with String returns String, while called with ↵Timm2014-06-161-0/+11
| | | | Loofah fragment returns Loofah fragment. Added tests for this.
* Added test case for non-comment. Removed pending assertion that passed.Timm2014-06-161-3/+3
|
* Added ability to pass a custom scrubber to sanitize. Includes test coverage.Timm2014-06-151-0/+36
|
* Added some tests for ActionView::Sanitizer.Timm2014-06-151-0/+32
|
* Changed the description of some pending tests. Changed the expected output ↵Timm2014-06-151-3/+4
| | | | of a script test.
* Renamed the SanitizerTest class to SanitersTest, to remove the conflict with ↵Timm2014-06-151-1/+1
| | | | the old SanitizerTest for html-scanner.
* Added video poster sanitization testing (from @vipulnsward).Timm2014-06-151-0/+5
|
* Extracted failing tests in santiizers_test.rb into their own methods and ↵Timm2014-06-151-7/+71
| | | | marked them as pending.
* Changed expected value from '<b>' to empty string.Timm2014-06-151-1/+1
|
* Removed the contains_bad_protocols? method as well as the tests for it. ↵Timm2014-06-151-33/+0
| | | | Loofah already deals with this.
* Added Loofah as a dependency in actionview.gemspec.Timm2014-06-111-0/+330
Implemented ActionView: FullSanitizer, LinkSanitizer and WhiteListSanitizer in sanitizers.rb. Deprecated protocol_separator and bad_tags. Added new tests in sanitizers_test.rb and reimplemented assert_dom_equal with Loofah.