Skip to content

Commit

Permalink
Fixed some broken specs.
Browse files Browse the repository at this point in the history
  • Loading branch information
parix committed Jun 13, 2018
1 parent 1433fda commit a7e8f22
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/gw2/guild.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module Guild
extend Resource

def self.details(query = {})
get("/guild_details.json", query)
get("/guild_details.json", query: query)
end
end
end
4 changes: 2 additions & 2 deletions lib/gw2/map.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ def self.details(map_id)
end

def self.floor(continent_id, floor)
get("/map_floor.json", { continent_id: continent_id, floor: floor })
get("/map_floor.json", query: { continent_id: continent_id, floor: floor })
end

def self.continents(continent_id="all")
get("/continents.json", { ids: continent_id})
get("/continents.json", query: { ids: continent_id })
end
end
end
2 changes: 1 addition & 1 deletion lib/gw2/misc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def self.build
end

def self.files
get("/files.json", {ids: "all"})
get("/files.json", query: { ids: "all" })
end

def self.worlds
Expand Down
2 changes: 1 addition & 1 deletion lib/gw2/wvw.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def self.matches
end

def self.match_details(match_id)
get("/wvw/match_details.json", match_id: match_id)["maps"]
get("/wvw/match_details.json", query: { match_id: match_id })["maps"]
end

def self.objective_names
Expand Down

0 comments on commit a7e8f22

Please sign in to comment.