Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBaummann committed Mar 30, 2015
1 parent 273bf72 commit d50d5d5
Show file tree
Hide file tree
Showing 36 changed files with 2,040 additions and 3,215 deletions.
2 changes: 1 addition & 1 deletion lib/gw2/https.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module GW2
module HTTPS
DEFAULT_REQUEST = { action: "Get", ssl: true }
V1_ENDPOINTS = ["world_names", "event_names", "guild_details", "wvw"]
V1_ENDPOINTS = ["world_names", "event_names", "guild_details", "wvw", "map_floor"]
def query_string(query_hash = {})
string = query_hash.collect{ |k,v| "#{k}=#{v}" }.join("&")
string.prepend("?") unless string.empty?
Expand Down
6 changes: 3 additions & 3 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("/floors/#{continent_id}/#{floor}.json")
get("/map_floor.json", { continent_id: continent_id, floor: floor })
end

def self.continents
get("/continents.json", { ids: "all"})
def self.continents(continent_id="all")
get("/continents.json", { 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 @@ -3,7 +3,7 @@ module Misc
extend Resource

def self.build
get("/build.json")
get("/build.json")["id"]
end

def self.files
Expand Down
42 changes: 42 additions & 0 deletions spec/fixtures/GW2_Colors/_colors/returns_all_colors.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3,016 changes: 1,514 additions & 1,502 deletions spec/fixtures/GW2_Event/_event_names/returns_the_names_of_all_events.yml

Large diffs are not rendered by default.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions spec/fixtures/GW2_Item/_all/returns_all_items.yml

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d50d5d5

Please sign in to comment.