spec/host_inventory/linux/virtualization_spec.rb in specinfra-2.59.0 vs spec/host_inventory/linux/virtualization_spec.rb in specinfra-2.59.1
- old
+ new
@@ -1,9 +1,11 @@
require 'spec_helper'
-set :os, { :family => 'linux' }
-
describe Specinfra::HostInventory::Virtualization do
+ before :all do
+ set :os, { :family => 'linux' }
+ end
+
virt = Specinfra::HostInventory::Virtualization.new(host_inventory)
let(:host_inventory) { nil }
it 'Docker Image should return :system => "docker"' do
allow(virt.backend).to receive(:run_command).with('ls /.dockerinit') do
CommandResult.new(:stdout => '/.dockerinit', :exit_status => 0)