From 67665cf6a71023a5788515a4e91176dac46b727f Mon Sep 17 00:00:00 2001 From: Kaise Cheng Date: Mon, 1 Mar 2021 14:18:58 +0100 Subject: [PATCH] unblock test case relying on latest geoip filter gem --- .../filters/geoip/download_manager_spec.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/x-pack/spec/filters/geoip/download_manager_spec.rb b/x-pack/spec/filters/geoip/download_manager_spec.rb index 6bdf1b55d63..f57b057f207 100644 --- a/x-pack/spec/filters/geoip/download_manager_spec.rb +++ b/x-pack/spec/filters/geoip/download_manager_spec.rb @@ -105,15 +105,15 @@ module LogStash module Filters module Geoip end end - # context "assert database" do - # it "should raise error if file is invalid" do - # expect{ download_manager.send(:assert_database!, "Gemfile") }.to raise_error /failed to load database/ - # end - # - # it "should pass validation" do - # expect(download_manager.send(:assert_database!, DEFAULT_CITY_DB_PATH)).to be_nil - # end - # end + context "assert database" do + it "should raise error if file is invalid" do + expect{ download_manager.send(:assert_database!, "Gemfile") }.to raise_error /failed to load database/ + end + + it "should pass validation" do + expect(download_manager.send(:assert_database!, DEFAULT_CITY_DB_PATH)).to be_nil + end + end context "fetch database" do it "should be false if no update" do