mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Allow running specs from any directory (#609)
This commit is contained in:
parent
d237d3ef7d
commit
926206a46c
2 changed files with 8 additions and 8 deletions
|
@ -100,7 +100,7 @@ describe "Macros" do
|
|||
describe "#send_file" do
|
||||
it "sends file with given path and default mime-type" do
|
||||
get "/" do |env|
|
||||
send_file env, "./spec/asset/hello.ecr"
|
||||
send_file env, "#{__DIR__}/asset/hello.ecr"
|
||||
end
|
||||
|
||||
request = HTTP::Request.new("GET", "/")
|
||||
|
@ -112,7 +112,7 @@ describe "Macros" do
|
|||
|
||||
it "sends file with given path and given mime-type" do
|
||||
get "/" do |env|
|
||||
send_file env, "./spec/asset/hello.ecr", "image/jpeg"
|
||||
send_file env, "#{__DIR__}/asset/hello.ecr", "image/jpeg"
|
||||
end
|
||||
|
||||
request = HTTP::Request.new("GET", "/")
|
||||
|
@ -136,7 +136,7 @@ describe "Macros" do
|
|||
|
||||
it "sends file with given path and given filename" do
|
||||
get "/" do |env|
|
||||
send_file env, "./spec/asset/hello.ecr", filename: "image.jpg"
|
||||
send_file env, "#{__DIR__}/asset/hello.ecr", filename: "image.jpg"
|
||||
end
|
||||
|
||||
request = HTTP::Request.new("GET", "/")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue