Skip to content

Commit

Permalink
rewrite tests to work with old rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
wfeldt committed Jun 4, 2021
1 parent d731b2e commit 60aa35b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/y2storage/planned/can_be_formatted_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def reuse!(devicegraph)

it "sets the 'ro' option exactly once" do
planned.format!(blk_device)
expect(blk_device.filesystem.mount_options).to include("ro").once
expect(blk_device.filesystem.mount_options.count { |x| x == "ro" }).to eq(1)
end

context "and fstab options also include the 'ro' flag" do
Expand All @@ -98,7 +98,7 @@ def reuse!(devicegraph)

it "sets the 'ro' option exactly once" do
planned.format!(blk_device)
expect(blk_device.filesystem.mount_options).to include("ro").once
expect(blk_device.filesystem.mount_options.count { |x| x == "ro" }).to eq(1)
end
end

Expand Down

0 comments on commit 60aa35b

Please sign in to comment.