spec/invoker/config_spec.rb in invoker-1.5.6 vs spec/invoker/config_spec.rb in invoker-1.5.7
- old
+ new
@@ -153,11 +153,11 @@
end
end
describe "Procfile" do
it "should load Procfiles and create config object" do
- File.open("/tmp/Procfile", "w") {|fl|
+ File.open("/tmp/Procfile", "w") {|fl|
fl.write <<-EOD
web: bundle exec rails s -p $PORT
EOD
}
config = Invoker::Parsers::Config.new("/tmp/Procfile", 9000)
@@ -168,11 +168,11 @@
end
end
describe "Copy of DNS information" do
it "should allow copy of DNS information" do
- File.open("/tmp/Procfile", "w") {|fl|
+ File.open("/tmp/Procfile", "w") {|fl|
fl.write <<-EOD
web: bundle exec rails s -p $PORT
EOD
}
Invoker.load_invoker_config("/tmp/Procfile", 9000)
@@ -249,11 +249,11 @@
file.close
config = Invoker::Parsers::Config.new(file.path, 9000)
processes = config.autorunnable_processes
expect(processes.map(&:label)).to eq(['panda-auth', 'postgres', 'memcached'])
- expect(processes[0].sleep_duration).to eq(1)
+ expect(processes[0].sleep_duration).to eq(0)
expect(processes[1].sleep_duration).to eq(5)
ensure
file.unlink()
end
end
@@ -340,10 +340,10 @@
config = Invoker::Parsers::Config.new(nil, 9000)
expect(config.process("some_process").cmd).to eq("some_command")
processes = config.autorunnable_processes
process_1 = processes[0]
- expect(process_1.sleep_duration).to eq(1)
+ expect(process_1.sleep_duration).to eq(0)
expect(process_1.index).to eq(0)
ensure
File.delete(invoker_ini)
File.delete(procfile)
end