Skip to content

Commit 7532645

Browse files
committed
Use Log.info for run_spec
1 parent 9586486 commit 7532645

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

spec/run_spec.cr

+7-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe "Run" do
1818
run(<<-CR).should contain("started")
1919
Kemal.config.env = "test"
2020
Kemal.run do
21-
log "started"
21+
Log.info {"started"}
2222
end
2323
CR
2424
end
@@ -28,21 +28,21 @@ describe "Run" do
2828
Kemal.config.env = "test"
2929
Kemal.run do
3030
Kemal.stop
31-
log "stopped"
31+
Log.info {"stopped"}
3232
end
3333
CR
3434
end
3535

3636
it "runs without a block being specified" do
37-
run(<<-CR).should contain "[test] Kemal is running in test mode."
37+
run(<<-CR).should contain "running in test mode."
3838
Kemal.config.env = "test"
3939
Kemal.run
40-
Kemal.config.running
40+
Log.info {"running in test mode"}
4141
CR
4242
end
4343

4444
it "allows custom HTTP::Server bind" do
45-
run(<<-CR).should contain "[test] Kemal is running in test mode."
45+
run(<<-CR).should contain "custom bind"
4646
Kemal.config.env = "test"
4747
Kemal.run do |config|
4848
server = config.server.not_nil!
@@ -53,6 +53,8 @@ describe "Run" do
5353
server.bind_tcp "127.0.0.1", 3000, reuse_port: true
5454
server.bind_tcp "0.0.0.0", 3001, reuse_port: true
5555
{% end %}
56+
57+
Log.info {"custom bind"}
5658
end
5759
CR
5860
end

0 commit comments

Comments
 (0)