mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Early return from range if request type is not GET
This commit is contained in:
parent
0543142a10
commit
476b27892e
5 changed files with 37 additions and 40 deletions
|
@ -1,30 +1,30 @@
|
|||
require "./spec_helper"
|
||||
|
||||
describe "Run" do
|
||||
it "runs a code block after starting" do
|
||||
Kemal.config.env = "test"
|
||||
make_me_true = false
|
||||
Kemal.run do
|
||||
make_me_true = true
|
||||
Kemal.stop
|
||||
end
|
||||
make_me_true.should eq true
|
||||
end
|
||||
|
||||
it "runs without a block being specified" do
|
||||
Kemal.config.env = "test"
|
||||
Kemal.run
|
||||
Kemal.config.running.should eq true
|
||||
Kemal.stop
|
||||
end
|
||||
|
||||
it "runs with just a block" do
|
||||
Kemal.config.env = "test"
|
||||
make_me_true = false
|
||||
Kemal.run do
|
||||
make_me_true = true
|
||||
Kemal.stop
|
||||
end
|
||||
make_me_true.should eq true
|
||||
end
|
||||
end
|
||||
require "./spec_helper"
|
||||
|
||||
describe "Run" do
|
||||
it "runs a code block after starting" do
|
||||
Kemal.config.env = "test"
|
||||
make_me_true = false
|
||||
Kemal.run do
|
||||
make_me_true = true
|
||||
Kemal.stop
|
||||
end
|
||||
make_me_true.should eq true
|
||||
end
|
||||
|
||||
it "runs without a block being specified" do
|
||||
Kemal.config.env = "test"
|
||||
Kemal.run
|
||||
Kemal.config.running.should eq true
|
||||
Kemal.stop
|
||||
end
|
||||
|
||||
it "runs with just a block" do
|
||||
Kemal.config.env = "test"
|
||||
make_me_true = false
|
||||
Kemal.run do
|
||||
make_me_true = true
|
||||
Kemal.stop
|
||||
end
|
||||
make_me_true.should eq true
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue