mirror of
https://github.com/zhigang1992/probot.github.io.git
synced 2026-04-23 11:57:35 +08:00
Add test for host param
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
require "bundler/setup"
|
||||
require "safe_yaml"
|
||||
require "minitest/autorun"
|
||||
require "net/http"
|
||||
|
||||
describe "lint test" do
|
||||
BANNED_WORDS = Regexp.new('\b(' + [
|
||||
@@ -47,6 +48,12 @@ describe "lint test" do
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
it "host returns 200" do
|
||||
uri = URI(data["host"] + '/probot/stats')
|
||||
res = Net::HTTP.get_response(uri)
|
||||
assert_equal "200", res.code, "Expected 200 response from #{uri}"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user