Sha256: c84d98fca5b0e72ab754bcdfcfa1b9e9f2c8b76dd8121f8ff1540555c95b5805
Contents?: true
Size: 572 Bytes
Versions: 4
Compression:
Stored size: 572 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Algebra::Rename::RenameOperandAndEmptyAliases, '#optimize' do subject { object.optimize } let(:header) { Relation::Header.new([ [ :id, Integer ], [ :name, String ] ]) } let(:base) { Relation.new(header, [ [ 1, 'Dan Kubb' ] ].each) } let(:relation) { base.rename(:id => :other_id).rename(:other_id => :id) } let(:object) { described_class.new(relation) } before do object.should be_optimizable end it { should equal(base) } end
Version data entries
4 entries across 4 versions & 1 rubygems