Skip to content

Commit

Permalink
use #gdb_id instead of #id
Browse files Browse the repository at this point in the history
  • Loading branch information
maddox committed Mar 4, 2013
1 parent 5982cd2 commit 7980fe0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/the_games_db/game.rb
Expand Up @@ -5,7 +5,7 @@ class Game
include SAXMachine

parent :feed
element :id
element :id :as => :gbd_id

This comment has been minimized.

Copy link
@Lugghawk

Lugghawk Feb 29, 2016

gdb_id instead of #id

You used gbd_id here instead. A little confusing when I first encountered it.

element :GameTitle, :as => :title
element :Overview, :as => :overview
element :Platform, :as => :platform
Expand Down
2 changes: 1 addition & 1 deletion spec/the_games_db/game_spec.rb
Expand Up @@ -52,7 +52,7 @@
let(:game) { TheGamesDB::Game.find 140 }

it 'correctly parses the values' do
game.id.should == "140"
game.gbd_id.should == "140"
game.title.should == "Super Mario Bros."
game.overview.should =~ /^The player takes the role of Mario/
game.platform.should == "Nintendo Entertainment System (NES)"
Expand Down

0 comments on commit 7980fe0

Please sign in to comment.