Skip to content

Commit

Permalink
Minor mount_time spec refactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
djberg96 committed Apr 25, 2022
1 parent 764e300 commit 5f5ef24
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions spec/sys_filesystem_unix_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -424,13 +424,9 @@
end

example 'mount time works as expected' do
expected_class = solaris ? Time : NilClass
expect(mount).to respond_to(:mount_time)

if solaris
expect(mount.mount_time).to be_kind_of(Time)
else
expect(mount.mount_time).to be_nil
end
expect(mount.mount_time).to be_kind_of(expected_class)
end

example 'mount dump_frequency works as expected' do
Expand Down

0 comments on commit 5f5ef24

Please sign in to comment.