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 cab60be commit cb54a88
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
require "spec_helper"

describe "rake scaleway:storage:migrate_from_local", type: :task do
before do
allow(ActiveStorage::Migrator).to receive(:migrate!).with(:local, :scaleway).and_return(true)
end

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

it "invokes the migrator" do
expect(ActiveStorage::Migrator).to receive(:migrate!).with(:local, :scaleway).and_return(true)

task.execute
end
end

0 comments on commit cb54a88

Please sign in to comment.