spec/guards/block_device_spec.rb in mspec-1.7.0 vs spec/guards/block_device_spec.rb in mspec-1.8.0
- old
+ new
@@ -4,10 +4,10 @@
describe Object, "#with_block_device" do
before :each do
ScratchPad.clear
@guard = BlockDeviceGuard.new
- BlockDeviceGuard.stub!(:new).and_return(@guard)
+ BlockDeviceGuard.stub(:new).and_return(@guard)
end
platform_is_not :freebsd, :windows do
it "yields if block device is available" do
@guard.should_receive(:`).and_return("block devices")