class Shoulda::ActiveRecord::Matchers::HaveNamedScopeMatcher

def finds_correct_scope?

def finds_correct_scope?
  return true if @finding.nil?
  if @finding == scope.proxy_options
    true
  else
    @missing_expectation = "#{@scope_call} to return results scoped to "
    @missing_expectation << "#{@finding.inspect} but was scoped to "
    @missing_expectation << scope.proxy_options.inspect
    false
  end
end