Sha256: 17f189de41afc038a7e8588f8d50288cb933b792c81b4783c49d3973f1cc28eb

Contents?: true

Size: 584 Bytes

Versions: 4

Compression:

Stored size: 584 Bytes

Contents

require 'spec_helper'

include Serverspec::Helper::Plamo

describe zfs('rpool') do
  it { should exist }
  its(:command) { should eq "zfs list -H rpool" }
end

describe zfs('rpool') do
  it { should have_property 'mountpoint' => '/rpool'  }
  its(:command) { should eq "zfs list -H -o mountpoint rpool | grep -- \\^/rpool\\$" }
end

describe zfs('rpool') do
  it { should have_property 'mountpoint' => '/rpool', 'compression' => 'off' }
  its(:command) { should eq "zfs list -H -o compression rpool | grep -- \\^off\\$ && zfs list -H -o mountpoint rpool | grep -- \\^/rpool\\$" }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
serverspec-0.11.5 spec/plamo/zfs_spec.rb
serverspec-0.11.4 spec/plamo/zfs_spec.rb
serverspec-0.11.3 spec/plamo/zfs_spec.rb
serverspec-0.11.2 spec/plamo/zfs_spec.rb