collectiveidea/json_spec — Issue #18: "the JSON should be ..." failing in JRuby
Author: declan
Created: 2012-01-12 20:51:52+00:00
State: open

I'm using JRuby 1.6.5 with Rails 3.1.3 and Cucumber 1.1.4.

When I try to use the step 'the JSON should be ...' I get this error

```
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.length (NoMethodError)
/home/declan/.rvm/gems/jruby-1.6.5@neo/gems/cucumber-1.1.4/bin/../lib/cucumber/step_match.rb:73:in `replace_arguments'
...
```

Current workaround is to use 'the JSON at "" should be ...' instead.