File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ describe "Run" do
18
18
run(<<-CR ).should contain("started")
19
19
Kemal.config.env = "test"
20
20
Kemal.run do
21
- log "started"
21
+ Log.info { "started"}
22
22
end
23
23
CR
24
24
end
@@ -28,21 +28,21 @@ describe "Run" do
28
28
Kemal.config.env = "test"
29
29
Kemal.run do
30
30
Kemal.stop
31
- log "stopped"
31
+ Log.info { "stopped"}
32
32
end
33
33
CR
34
34
end
35
35
36
36
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."
38
38
Kemal.config.env = "test"
39
39
Kemal.run
40
- Kemal.config. running
40
+ Log.info {" running in test mode"}
41
41
CR
42
42
end
43
43
44
44
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 "
46
46
Kemal.config.env = "test"
47
47
Kemal.run do |config|
48
48
server = config.server.not_nil!
@@ -53,6 +53,8 @@ describe "Run" do
53
53
server.bind_tcp "127.0.0.1", 3000, reuse_port: true
54
54
server.bind_tcp "0.0.0.0", 3001, reuse_port: true
55
55
{% end %}
56
+
57
+ Log.info {"custom bind"}
56
58
end
57
59
CR
58
60
end
You can’t perform that action at this time.
0 commit comments