Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

test case to make sure regex in hash is to_s, since JSON.parse(/a/.to…

…_json) doesnt work
  • Loading branch information...
commit 3628803c04ef98ee0902536e872873f46fa7c563 1 parent acb3628
Darragh Curran authored

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. +5 0 spec/exceptional/exception_data_spec.rb
5 spec/exceptional/exception_data_spec.rb
@@ -86,6 +86,11 @@ def initialize
86 86 Exceptional::ControllerExceptionData.sanitize_hash(input).should == {'crazy' => crazy.to_s, :simple => '123', :some_hash => {'1' => '2'}, :array => ['1','2']}
87 87 end
88 88
  89 + it "to_strings regex because JSON.parse(/aa/.to_json) doesn't work" do
  90 + input = {'crazy' => /abc.*/}
  91 + Exceptional::ExceptionData.sanitize_hash(input).should == {'crazy' => /abc.*/.to_s}
  92 + end
  93 +
89 94 it "handles session objects with various interfaces" do
90 95 class SessionWithInstanceVariables
91 96 def initialize

0 comments on commit 3628803

Please sign in to comment.
Something went wrong with that request. Please try again.