[rspec-users] odd error
dchelimsky at gmail.com
Wed Nov 4 17:18:09 EST 2009
On Wed, Nov 4, 2009 at 3:37 PM, rogerdpack <rogerpack2005 at gmail.com> wrote:
> with 1.8.6 + rspec 1.2.9 (sorry couldn't try trunk, see previous post)
> I get:
> C:\dev\ruby\old\arguments>spec spec\arguments_spec.rb
> ..................F.... 0.000000 0.000000 0.000000 ( 0.000000)
> .F 0.000000 0.000000 0.000000 ( 0.000000)
> 0.015000 0.000000 0.015000 ( 0.015625)
> 'Arguments should raise ArgumentError if passing recoginized keywords'
> expected: "`four, five` are not recognized argument keywords",
> got: "`five, four` are not recognized argument keywords" (using
Please be sure to post the relevant code when you are asking for help on
this list. I'll take a guess at what is going on, but it's hard to know if
I'm barking up the right tree without seeing the code.
If I understand the problem correctly, it's that the spec is expecting hash
keys to be in a specific order. In Ruby 1.8, the order of hash keys are not
guaranteed to be in any specific order, whereas in 1.9, AFAIK, they are.
> (succeeds with 1.9.x)
> rspec-users mailing list
> rspec-users at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users