On Tuesday 07 April 2009, Phlip wrote: > Michael Schuerig wrote: > > def failure_message > > "expected\...@raw_target}\n" + > > "to be JSON code equivalent to\...@raw_expected}\n" + > > "Difference:\[email protected](@target).inspect}" > > end > > Nice - this fixes the common problem with assertions on large bulky > variables - they often leave you squinting, trying to see the line > that's different. > > But where did .diff() come from? should I know it's part of > ActiveSupport::JSON or something?
Hash#diff is part of ActiveSupport and when you look at its code you'll probably have to squint. Michael -- Michael Schuerig mailto:[email protected] http://www.schuerig.de/michael/ _______________________________________________ rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
