Sha256: f2d746617cc69185326a7fabf8634d4373a35e78c2b522ad8b7cf096c8bb5738
Contents?: true
Size: 574 Bytes
Versions: 4
Compression:
Stored size: 574 Bytes
Contents
require 'active_record' require 'spec_helper' require 'napa/active_record_extensions/filter_by_hash' describe Napa::FilterByHash do before do expect(ActiveSupport::Deprecation).to receive(:warn) class Foo < ActiveRecord::Base; include Napa::FilterByHash; end end 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
4 entries across 4 versions & 1 rubygems