spec/mock_fission.rb in beaker-3.34.0 vs spec/mock_fission.rb in beaker-3.35.0
- old
+ new
@@ -5,11 +5,11 @@
@message = message
@data = data
end
end
-class MockFissionVM
+class MockFissionVM
attr_accessor :name
@@snaps = []
def initialize name
@name = name
@running = true
@@ -26,22 +26,22 @@
def revert_to_snapshot name
@running = false
end
def running?
- Response.new(0, '', @running)
+ Response.new(0, '', @running)
end
def start opt
- @running = true
+ @running = true
end
def exists?
true
end
end
-class MockFission
+class MockFission
@@vms = []
def self.presets hosts
snaps = []
hosts.each do |host|
@@vms << MockFissionVM.new( host.name )