[rspec-users] [RSpec] Cannot save or be_valid when using xss_terminate
jonathan at parkerhill.com
Mon Feb 2 11:44:36 EST 2009
On Feb 2, 2009, at 11:30 AM, Fernando Perez wrote:
> I have a Rails app that uses xss_terminate to sanitize the user input
> before it gets saved to the DB. In my specs when I call
> be_valid or @product.save, I get the following error message:
> NoMethodError in 'Creating a product with all necessary attributes
> should be valid'
> undefined method `empty?' for Mon Feb 02 16:59:00 +0100 2009:Time
> The other error messages are related to xss_terminate source code. Has
> anyone had any trouble in specing models that are sanitized by
> Best regards,
> Posted via http://www.ruby-forum.com/.
> rspec-users mailing list
> rspec-users at rubyforge.org
I rspec models that use xss_terminate with no problem. I have not see
the error you're getting.
More information about the rspec-users