Files
ubicloud/spec/model/boot_image_spec.rb
Jeremy Evans 4a41370c24 Remove all skip_if_frozen{_models} calls in the specs
There is no need for these calls now that all specs are run when
frozen.
2024-10-30 12:08:24 -07:00

20 lines
521 B
Ruby

# frozen_string_literal: true
require_relative "spec_helper"
RSpec.describe BootImage do
subject(:boot_image) { described_class.new }
describe "#remove_boot_image" do
it "creates a strand to delete boot image" do
expect(Strand).to receive(:create_with_id) do |args|
expect(args[:prog]).to eq("RemoveBootImage")
expect(args[:label]).to eq("start")
expect(args[:stack]).to eq([{subject_id: 1}])
end
boot_image.id = 1
boot_image.remove_boot_image
end
end
end