triAGENS/ashikawa-core — pull request #44 by ettomatic (2013-04-16 15:56:07+00:00)
Title: Issue with first_example queries

Hi, I'm getting this error with first_example queries:

subject.first_example name: "Johnny"

NoMethodError:
undefined method `each' for nil:NilClass
# ./lib/ashikawa-ar/search.rb:80:in `first_example'
# ./spec/integration/search_spec.rb:40:in `block (2 levels) in '

Added a couple of tests and a possible fix.