mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-11-28 16:40:27 +08:00
12 lines
328 B
Ruby
12 lines
328 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_relative "spec_helper"
|
|
|
|
RSpec.describe VmInitScript do
|
|
it "implements a max length validation on the init_script column" do
|
|
vm = described_class.new(init_script: "a" * 2001)
|
|
expect(vm.valid?).to be false
|
|
vm.init_script = "a" * 2000
|
|
expect(vm.valid?).to be true
|
|
end
|
|
end
|