Skip to content

Commit

Permalink
use :not_supported_on_solaris instead
Browse files Browse the repository at this point in the history
  • Loading branch information
lamont-granquist committed Jun 5, 2014
1 parent 0873455 commit 792e950
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions spec/unit/provider/mount/mount_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
require 'spec_helper'
require 'ostruct'

exclude_flag = ['solaris2'].include?(ohai[:platform])

describe Chef::Provider::Mount::Mount do
before(:each) do
@node = Chef::Node.new
Expand Down Expand Up @@ -55,7 +53,7 @@
@provider.current_resource.device.should == '/dev/sdz1'
end

it "should accecpt device_type :uuid", external => exclude_flag do
it "should accecpt device_type :uuid", :not_supported_on_solaris do
@new_resource.device_type :uuid
@new_resource.device "d21afe51-a0fe-4dc6-9152-ac733763ae0a"
@stdout_findfs = double("STDOUT", :first => "/dev/sdz1")
Expand Down Expand Up @@ -94,7 +92,7 @@
@provider.load_current_resource
end

it "should raise an error if the mount device (uuid) does not exist", external => exclude_flag do
it "should raise an error if the mount device (uuid) does not exist", :not_supported_on_solaris do
@new_resource.device_type :uuid
@new_resource.device "d21afe51-a0fe-4dc6-9152-ac733763ae0a"
status_findfs = double("Status", :exitstatus => 1)
Expand Down Expand Up @@ -306,7 +304,7 @@
@provider.mount_fs()
end

it "should mount the filesystem specified by uuid", external => exclude_flag do
it "should mount the filesystem specified by uuid", :not_supported_on_solaris do
@new_resource.device "d21afe51-a0fe-4dc6-9152-ac733763ae0a"
@new_resource.device_type :uuid
@stdout_findfs = double("STDOUT", :first => "/dev/sdz1")
Expand Down

0 comments on commit 792e950

Please sign in to comment.