spec/windows/file_spec.rb in serverspec-0.10.3 vs spec/windows/file_spec.rb in serverspec-0.10.4
- old
+ new
@@ -1,7 +1,10 @@
require 'spec_helper'
include Serverspec::Helper::Cmd
+RSpec.configure do |c|
+ c.os = 'Windows'
+end
describe file('/some/valid/file') do
it { should be_file }
its(:command) { should == "((Get-Item -Path '/some/valid/file' -Force).attributes.ToString() -Split ', ') -contains 'Archive'" }
end