spec/movable_shared_examples.rb in compo-0.3.1 vs spec/movable_shared_examples.rb in compo-0.4.0
- old
+ new
@@ -44,11 +44,11 @@
describe '#move_to' do
context 'when the receiving parent is nil' do
let(:new_parent) { nil }
context 'and the Movable has no parent' do
- let(:old_parent) { Compo::Parentless.new }
+ let(:old_parent) { Compo::Composites::Parentless.new }
it_behaves_like 'a normal call to #move_to' do
let(:to) { new_parent }
end
end
@@ -67,11 +67,11 @@
context 'when the receiving parent refuses to add the Movable' do
let(:add_result) { nil }
context 'and the Movable has no parent' do
- let(:old_parent) { Compo::Parentless.new }
+ let(:old_parent) { Compo::Composites::Parentless.new }
it_behaves_like 'a normal call to #move_to' do
let(:to) { new_parent }
end
@@ -109,10 +109,10 @@
end
end
context 'when the receiving parent allows the Movable to be added' do
context 'and the Movable has no parent' do
- let(:old_parent) { Compo::Parentless.new }
+ let(:old_parent) { Compo::Composites::Parentless.new }
it_behaves_like 'a normal call to #move_to' do
let(:to) { new_parent }
end