spec/unit/veritas/algebra/rename/aliases/each_spec.rb in veritas-0.0.2 vs spec/unit/veritas/algebra/rename/aliases/each_spec.rb in veritas-0.0.3
- old
+ new
@@ -1,16 +1,15 @@
require 'spec_helper'
-describe 'Veritas::Algebra::Rename::Aliases#each' do
+describe 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(:object) { described_class.new(aliases) }
let(:yields) { [] }
- it_should_behave_like 'a command method'
+ it_should_behave_like 'an #each method'
it 'yields each alias' do
expect { subject }.to change { yields.dup }.
from([]).
to(aliases.to_a)