describe file('/dev/mapper/mpatha') do
  it { should be_block_device }
end

describe command('pvs') do
  its('stdout') { should match '/dev/mapper/mpatha vg0' }
end

describe command('vgs') do
  its('stdout') { should match /vg0/ }
end

describe command('multipath -ll') do
  its('stdout') { should match /sdb 8:16 active ready running/ }
  its('stdout') { should match /sdc 8:32 active ready running/ }
end
