Add a spec to prove that ActiveRecord::Relation should be returned after
chaining with complex associations, joins and wheres. #315

Examples:

  Note.first.notable.articles.
    joins(:comments).where{comments.article_id != nil}.first
  # => <Article>