Skip to content

Commit

Permalink
Removed ostruct from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Jun 12, 2024
1 parent bbdc1e3 commit c2a2a07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/geocode_test.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
require_relative "test_helper"

module Geocoder
def self.search(ip)
require "ostruct"
Result = Struct.new(:country, :state, :city, :latitude, :longitude, keyword_init: true)

[OpenStruct.new(
def self.search(ip)
[Result.new(
country: "Country",
state: "Region",
city: "City",
Expand Down

0 comments on commit c2a2a07

Please sign in to comment.