Sha256: e1f986700548d01972768008fbba785791f56596dc33c5849283c869a0d72465
Contents?: true
Size: 608 Bytes
Versions: 1
Compression:
Stored size: 608 Bytes
Contents
require 'active_record' require 'spec_helper' require 'service_template/active_record_extensions/filter_by_hash' describe ServiceTemplate::FilterByHash do before do expect(ActiveSupport::Deprecation).to receive(:warn) class Foo < ActiveRecord::Base; include ServiceTemplate::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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
service_template-0.5.0 | spec/active_record_extensions/filter_by_hash_spec.rb |