Sha256: 3b5f99615cc5128dfc34a65fba72f05d5b72e99faf0aa909e683a23f2bfd8699
Contents?: true
Size: 494 Bytes
Versions: 12
Compression:
Stored size: 494 Bytes
Contents
require 'active_record' require 'spec_helper' require 'napa/active_record_extensions/filter_by_hash' class Foo < ActiveRecord::Base include Napa::FilterByHash end describe Napa::FilterByHash do context 'when a hash is provided' do it 'returns an AR relation' do expect(Foo.filter).to be_a(ActiveRecord::Relation) end end context 'when nothing is provided' do it 'returns an AR relation' do expect(Foo.filter).to be_a(ActiveRecord::Relation) end end end
Version data entries
12 entries across 12 versions & 1 rubygems