spec/unit/plugins/darwin/filesystem_spec.rb in ohai-8.10.0 vs spec/unit/plugins/darwin/filesystem_spec.rb in ohai-8.11.1

- old
+ new

@@ -4,21 +4,21 @@ # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # -require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper.rb') +require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper.rb") describe Ohai::System, "darwin filesystem plugin" do let (:plugin) { get_plugin("darwin/filesystem") } before(:each) do allow(plugin).to receive(:collect_os).and_return(:darwin) @@ -56,11 +56,11 @@ it "should set mount to value from df -i" do plugin.run expect(plugin[:filesystem]["/dev/disk0s2"][:mount]).to eq("/") end - + it "should set inode info to value from df -i" do plugin.run expect(plugin[:filesystem]["/dev/disk0s2"][:total_inodes]).to eq("61069440") expect(plugin[:filesystem]["/dev/disk0s2"][:inodes_used]).to eq("39276054") expect(plugin[:filesystem]["/dev/disk0s2"][:inodes_available]).to eq("21793386") @@ -87,9 +87,9 @@ it "should set values from mount" do plugin.run expect(plugin[:filesystem]["/dev/disk0s2"][:mount]).to eq("/") expect(plugin[:filesystem]["/dev/disk0s2"][:fs_type]).to eq("hfs") - expect(plugin[:filesystem]["/dev/disk0s2"][:mount_options]).to eq([ "local", "journaled" ]) + expect(plugin[:filesystem]["/dev/disk0s2"][:mount_options]).to eq(%w{local journaled}) end end end