Skip to content

Commit

Permalink
Refactor Eve::CharacterInfo XML location.
Browse files Browse the repository at this point in the history
  • Loading branch information
amclain committed Sep 4, 2016
1 parent a34a247 commit 66fcb99
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion lib/greeve/eve/character_info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

module Greeve
module Eve
# Public character info.
# Information about the character. Has three data sets it can return
# depending on the access mask.
#
# @see https://eveonline-third-party-documentation.readthedocs.io/en/latest/xmlapi/eve/eve_characterinfo.html
class CharacterInfo < Greeve::BaseItem
Expand Down
2 changes: 1 addition & 1 deletion spec/base_item_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
describe Greeve::BaseItem do
let(:response_file) { "public_character_info" }
let(:response_file) { "eve/character_info" }
let(:character_id) { 462421468 }
let(:character_name) { "Zaphoon" }

Expand Down
4 changes: 2 additions & 2 deletions spec/eve/character_info_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
let(:key) { "1515664" }
let(:vcode) { "QYYBHdsFMmdWjc9bkWhqqKx00NLqA1c3pNHlacqHUGpaTkrnyrzwZ0vFY9L6aei3" }
let(:base_endpoint) { "#{Greeve::EVE_API_BASE_URL}/eve/CharacterInfo.xml.aspx" }
let(:xml_filename) { "public_character_info" }
let(:xml_filename) { "eve/character_info" }
let(:character_id) { 462421468 }

before {
Expand Down Expand Up @@ -49,7 +49,7 @@
end

context "private info (with api key)" do
let(:xml_filename) { "public_character_info_with_key" }
let(:xml_filename) { "eve/character_info_with_key" }

subject { Greeve::Eve::CharacterInfo.new(character_id, key: key, vcode: vcode) }

Expand Down
2 changes: 1 addition & 1 deletion spec/row_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
describe Greeve::Row do
let(:xml_element) {
load_xml_file("public_character_info")
load_xml_file("eve/character_info")
.locate("eveapi/result/rowset/?[0]")
.first
}
Expand Down
2 changes: 1 addition & 1 deletion spec/rowset_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
describe Greeve::Rowset do
let(:xml_element) {
load_xml_file("public_character_info")
load_xml_file("eve/character_info")
.locate("eveapi/result/rowset")
.first
}
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 66fcb99

Please sign in to comment.