mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Use domain double instead of machine
This commit is contained in:
@@ -5,14 +5,15 @@ shared_context "libvirt" do
|
||||
|
||||
let(:libvirt_context) { true }
|
||||
let(:id) { "dummy-vagrant_dummy" }
|
||||
let(:connection) { double("::Fog::Compute") }
|
||||
let(:connection) { double("connection") }
|
||||
let(:domain) { double("domain") }
|
||||
|
||||
def connection_result(options={})
|
||||
result = options.fetch(:result, nil)
|
||||
double("connection_result" => result)
|
||||
end
|
||||
|
||||
before do
|
||||
before (:each) do
|
||||
# we don't want unit tests to ever run commands on the system; so we wire
|
||||
# in a double to ensure any unexpected messages raise exceptions
|
||||
stub_const("::Fog::Compute", connection)
|
||||
|
||||
Reference in New Issue
Block a user