Sha256: a97292404ebde8aadef1f48905c7a0d3cd5ab1722dae1d3074a8e1e68e8e23e5
Contents?: true
Size: 409 Bytes
Versions: 1
Compression:
Stored size: 409 Bytes
Contents
require 'spec_helper' describe 'Veritas::Relation::Empty#each' do subject { object.each { |tuple| yields << tuple } } let(:klass) { Relation::Empty } let(:object) { klass.new([ [ :id, Integer ] ]) } let(:yields) { [] } it_should_behave_like 'a command method' it 'yields no tuples' do expect { subject }.to_not change { yields.dup } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/relation/empty/each_spec.rb |