File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ def initialize
23
23
24
24
# @return [String] title of default boot section.
25
25
def default
26
+ return unless @data
27
+
26
28
entry = @data . select { |d | d [ "id" ] == @default }
27
29
if entry . empty?
28
30
""
Original file line number Diff line number Diff line change 36
36
subject . read
37
37
38
38
expect ( subject . cpu_mitigations . to_human_string ) . to eq "Off"
39
- expect ( subject . grub_default . kernel_params . serialize ) . to eq cmdline_content
39
+ expect ( subject . grub_default . kernel_params . serialize ) . to include cmdline_content
40
40
end
41
41
end
42
42
69
69
end
70
70
71
71
it "installs the bootloader" do
72
+ allow ( Yast ::Stage ) . to receive ( :initial ) . and_return ( true )
72
73
allow ( Bootloader ::Bls ) . to receive ( :write_default_menu )
73
74
. with ( subject . sections . default )
74
75
allow ( Bootloader ::Bls ) . to receive ( :write_menu_timeout )
You can’t perform that action at this time.
0 commit comments