Skip to content

Commit

Permalink
unblock test case relying on latest geoip filter gem
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisecheng committed Mar 1, 2021
1 parent c1d9332 commit 67665cf
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions x-pack/spec/filters/geoip/download_manager_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 67665cf

Please sign in to comment.