require File.expand_path(File.dirname(__FILE__) + '/spec_helper') ############## # # Validator Rspec # Validation checks that a given input is valid, as as part of the request # canicolize the input f requested to check if an item is not only valid but also return the valid input # validator, under the covers should use the codec configuration to process underlying encodings # example: # given input string my<script%20alert('test')%20/>value # it canicalization is requested should be first decoded # so the input becomes my