mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
parent
6bf60f71ca
commit
e402062d77
2 changed files with 6 additions and 2 deletions
|
@ -23,7 +23,7 @@ describe LogStash::Api::Modules::Plugins do
|
|||
end
|
||||
|
||||
it "return valid json content type" do
|
||||
expect(last_response.content_type).to eq("application/json")
|
||||
expect(last_response.content_type).to eq("application/json"), "Did not get json, got #{last_response.content_type} / #{last_response.body}"
|
||||
end
|
||||
|
||||
context "#schema" do
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
# encoding: utf-8
|
||||
API_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "lib", "logstash", "api"))
|
||||
|
||||
|
||||
|
||||
require "logstash/devutils/rspec/spec_helper"
|
||||
require "api/lib/api/support/resource_dsl_methods"
|
||||
|
||||
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))
|
||||
require "lib/api/support/resource_dsl_methods"
|
||||
|
||||
require "logstash/settings"
|
||||
require 'rack/test'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue