Fix rake test:core path loading in API specs

Fixes #5384
This commit is contained in:
Andrew Cholakian 2016-05-27 17:28:42 -05:00
parent 6bf60f71ca
commit e402062d77
2 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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'