Skip to content

Commit

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

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

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

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

Expand Down

0 comments on commit 62f3f49

Please sign in to comment.