godot support

This commit is contained in:
2026-07-31 16:33:51 +02:00
parent 9a3347cfe7
commit e37e3760ac
7 changed files with 41 additions and 6 deletions
@@ -19,5 +19,17 @@ RSpec.describe UpdateService do
expect(mock_service).to have_received(:update).with("game", "1.0")
end
it "routes godot platform to GodotService" do
input = UpdateInputDto.new(platform: "godot", name: "game", version: "1.0")
mock_service = instance_double(SoftwareUpdater::GodotService)
allow(SoftwareUpdater::GodotService).to receive(:new).and_return(mock_service)
allow(mock_service).to receive(:update)
described_class.new.update(input)
expect(mock_service).to have_received(:update).with("game", "1.0")
end
end
end