Skip to content

Commit

Permalink
added testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Aug 12, 2016
1 parent 22a2e22 commit 9bb0365
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/kdump_test.rb
Expand Up @@ -232,6 +232,26 @@
end
end

context "when the param includes empty/nil entries" do
let(:kernel_param) { [nil, ""] }

it "reports presence of the param" do
expect(Yast::Kdump.crashkernel_param).to eq true
end

it "schedules the writing on the param" do
expect(Yast::Kdump.add_crashkernel_param).to eq true
end

it "does not find several ranges" do
expect(Yast::Kdump.crashkernel_list_ranges).to eq false
end

it "empty allocated memory" do
expect(Yast::Kdump.allocated_memory).to be_empty
end
end

context "when the param is a number" do
let(:kernel_param) { "32M" }

Expand Down

0 comments on commit 9bb0365

Please sign in to comment.