Re: [rspec-users] rspec test for converting a hash to a URL string

2008-04-18 Thread Jamie D
Thanks Pat, I wrote my first custom matcher and its all working now. Jamie ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] rspec test for converting a hash to a URL string

2008-04-14 Thread Pat Maddox
On Mon, Apr 14, 2008 at 6:58 PM, Jamie D <[EMAIL PROTECTED]> wrote: > Hi all, I've written an expectation for a method that converts a hash > into a url string of name/value pairs. The problem is that the hash is > not traversed in the same order as it is defined so I can not work out > how to t

[rspec-users] rspec test for converting a hash to a URL string

2008-04-14 Thread Jamie D
Hi all, I've written an expectation for a method that converts a hash into a url string of name/value pairs. The problem is that the hash is not traversed in the same order as it is defined so I can not work out how to test for the correct returned string. The operation of the code does not require