spec/beaker/host/mac/exec_spec.rb in beaker-4.42.0 vs spec/beaker/host/mac/exec_spec.rb in beaker-5.0.0
- old
+ new
@@ -15,15 +15,14 @@
end
def to_s
"me"
end
-
end
let(:opts) { @opts || {} }
- let(:logger) { double( 'logger' ).as_null_object }
+ let(:logger) { double('logger').as_null_object }
let(:instance) { MacExecTest.new(opts, logger) }
describe '#selinux_enabled?' do
it 'does not call selinuxenabled' do
expect(Beaker::Command).not_to receive(:new).with("sudo selinuxenabled")
@@ -34,10 +33,10 @@
describe '#modified_at' do
it 'calls execute with touch and timestamp' do
time = '190101010000'
path = '/path/to/file'
- expect( instance ).to receive(:execute).with("touch -mt #{time} #{path}").and_return(0)
+ expect(instance).to receive(:execute).with("touch -mt #{time} #{path}").and_return(0)
instance.modified_at(path, time)
end
end
end