From 792e9509733ed3f151d66d9aba4add34ff5238fb Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Thu, 5 Jun 2014 10:26:52 -0700 Subject: use :not_supported_on_solaris instead --- spec/unit/provider/mount/mount_spec.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'spec/unit/provider/mount/mount_spec.rb') diff --git a/spec/unit/provider/mount/mount_spec.rb b/spec/unit/provider/mount/mount_spec.rb index 8da9d3bf50..f55a65ab2a 100644 --- a/spec/unit/provider/mount/mount_spec.rb +++ b/spec/unit/provider/mount/mount_spec.rb @@ -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 @@ -55,7 +53,7 @@ describe Chef::Provider::Mount::Mount do @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") @@ -94,7 +92,7 @@ describe Chef::Provider::Mount::Mount do @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) @@ -306,7 +304,7 @@ describe Chef::Provider::Mount::Mount do @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") -- cgit v1.2.1