Sha256: a8803a6335c3e23925c1a2954efe26daf10ad3a8d68538bd78dcf331d3f7393b
Contents?: true
Size: 667 Bytes
Versions: 1
Compression:
Stored size: 667 Bytes
Contents
require 'spec_helper' describe 'Veritas::Algebra::Rename::Aliases#each' do subject { object.each { |old_attr, new_attr| yields << [ old_attr, new_attr ] } } let(:klass) { Algebra::Rename::Aliases } let(:attribute) { Attribute::Integer.new(:id) } let(:aliases) { { attribute => attribute.rename(:other_id) } } let(:object) { klass.new(aliases) } let(:yields) { [] } it_should_behave_like 'a command method' it 'yields each alias' do expect { subject }.to change { yields.dup }. from([]). to(aliases.to_a) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/algebra/rename/aliases/each_spec.rb |