Files
vagrant-libvirt/spec/support/environment_helper.rb
Nico Tonozzi eb1dab0131 Update readme and test cases
Updated documentation so that users could find the new option.

Updated test case to behave as expected.
2014-08-05 09:16:52 -06:00

35 lines
430 B
Ruby

require "ostruct"
require "pathname"
class EnvironmentHelper
attr_writer :domain_name
attr_accessor :random_hostname, :name, :default_prefix
def [](value)
self.send(value.to_sym)
end
def machine
self
end
def provider_config
self
end
def root_path
Pathname.new("./spec/support/foo")
end
def domain_name
#noop
end
def libvirt_compute
OpenStruct.new(servers: [])
end
end