Sha256: 0803eeb6b862d984418eaa348279d6c079109185c68a57eebeb23434f4f04633
Contents?: true
Size: 504 Bytes
Versions: 2
Compression:
Stored size: 504 Bytes
Contents
require 'spec_helper' describe 'Veritas::Algebra::Rename::Aliases#empty?' do subject { object.empty? } let(:klass) { Algebra::Rename::Aliases } let(:attribute) { Attribute::Integer.new(:id) } let(:object) { klass.new(aliases) } context 'when aliases are empty' do let(:aliases) { {} } it { should be(true) } end context 'when aliases are not empty' do let(:aliases) { { attribute => attribute.rename(:other_id) } } it { should be(false) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/algebra/rename/aliases/empty_spec.rb |
veritas-0.0.1 | spec/unit/veritas/algebra/rename/aliases/empty_spec.rb |