Sha256: e6efe59bf608d4fbd4a8f7f693d8705b5765563f28212d57fdcfa74e3459e825
Contents?: true
Size: 514 Bytes
Versions: 2
Compression:
Stored size: 514 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Algebra::Rename::Aliases, '#[]' do subject { object[attribute] } let(:attribute) { Attribute::Integer.new(:id) } let(:object) { described_class.new(aliases) } context 'when attribute is not renamed' do let(:aliases) { {} } it { should be(attribute) } end context 'when attribute is renamed' do let(:renamed) { attribute.rename(:other_id) } let(:aliases) { { attribute => renamed } } it { should be(renamed) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.2.0 | spec/unit/axiom/algebra/rename/aliases/element_reader_spec.rb |
axiom-0.1.1 | spec/unit/axiom/algebra/rename/aliases/element_reader_spec.rb |