Sha256: daef11316fc9bdadb684a547c41574c75bcfddc9a7d439b68140dd010ffe6665
Contents?: true
Size: 393 Bytes
Versions: 2
Compression:
Stored size: 393 Bytes
Contents
RSpec.describe ROM::Relation, '#exclude' do subject(:relation) { container.relations.users } include_context 'users and tasks' with_adapters do it 'delegates to dataset and returns a new relation' do expect(relation.dataset) .to receive(:exclude).with(name: 'Jane').and_call_original expect(relation.exclude(name: 'Jane')).to_not eq(relation) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rom-sql-0.9.1 | spec/unit/relation/exclude_spec.rb |
rom-sql-0.9.0 | spec/unit/relation/exclude_spec.rb |