Skip to content

Commit

Permalink
fix: site_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
r74tech committed Oct 6, 2024
1 parent c5d00fb commit d71119a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions wikidotrb/spec/module/site_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,12 @@

before(:each) do
# Ensure the `new-page` does not exist before each test
existing_page = site.page.get(new_page_fullname, raise_when_not_found: false)
existing_page&.destroy
site.page.get(new_page_fullname, raise_when_not_found: false)&.destroy
end

after(:each) do
# Cleanup after each test
site.page.get(new_page_fullname, raise_when_not_found: false)&.destroy
end

context "#get" do
Expand Down

0 comments on commit d71119a

Please sign in to comment.