Skip to content

Commit

Permalink
fix: Update spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentinchampenois committed Jan 17, 2024
1 parent cb54a88 commit 23eeb76
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/lib/tasks/decidim_app/k8s/dump_db_tasks_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
require "spec_helper"

describe "rake decidim_app:k8s:dump_db", type: :task do
before do
allow(DecidimApp::K8s::ConfigurationExporter).to receive(:dump_db).and_return(true)
end

it "preloads the Rails environment" do
expect(task.prerequisites).to include "environment"
end

it "invokes the configuration exporter" do
expect(DecidimApp::K8s::ConfigurationExporter).to receive(:dump_db).and_return(true)

task.execute
end
end

0 comments on commit 23eeb76

Please sign in to comment.