spec/invoker/power/setup/linux_setup_spec.rb in invoker-1.5.5 vs spec/invoker/power/setup/linux_setup_spec.rb in invoker-1.5.6
- old
+ new
@@ -22,12 +22,12 @@
before do
FileUtils.mkdir_p(inv_conf_dir)
FileUtils.mkdir_p(Invoker::Power::Distro::Base::RESOLVER_DIR)
end
- let(:invoker_setup) { Invoker::Power::LinuxSetup.new('dev') }
- let(:distro_installer) { Invoker::Power::Distro::Ubuntu.new('dev') }
+ let(:invoker_setup) { Invoker::Power::LinuxSetup.new('test') }
+ let(:distro_installer) { Invoker::Power::Distro::Ubuntu.new('test') }
describe "should only proceed after user confirmation" do
before { invoker_setup.distro_installer = distro_installer }
it "should create config file with port" do
@@ -76,10 +76,10 @@
config = Invoker::Power::Config.load_config
dnsmasq_content = File.read(distro_installer.resolver_file)
expect(dnsmasq_content.strip).to_not be_empty
- expect(dnsmasq_content).to match(/dev/)
+ expect(dnsmasq_content).to match(/test/)
socat_content = File.read(Invoker::Power::Distro::Base::SOCAT_SHELLSCRIPT)
expect(socat_content.strip).to_not be_empty
expect(socat_content.strip).to match(/#{config.https_port}/)
expect(socat_content.strip).to match(/#{config.http_port}/)