Skip to content

Commit

Permalink
Remove method definition from spec file
Browse files Browse the repository at this point in the history
This method is already in the model file.
  • Loading branch information
mamhoff committed Sep 20, 2023
1 parent 40ff7e5 commit a975134
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions spec/models/alchemy/page_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1206,19 +1206,6 @@ module Alchemy
end
end

def copy_children_to(new_parent)
children.each do |child|
next if child == new_parent

new_child = Page.copy(child, {
language_id: new_parent.language_id,
language_code: new_parent.language_code
})
new_child.move_to_child_of(new_parent)
child.copy_children_to(new_child) unless child.children.blank?
end
end

describe "#definition" do
context "if the page layout could not be found in the definition file" do
let(:page) { build_stubbed(:alchemy_page, page_layout: "notexisting") }
Expand Down

0 comments on commit a975134

Please sign in to comment.