Permalink
Browse files

dont filter results

  • Loading branch information...
1 parent 73a055d commit 45e004d4e444eae4841c9e7a6c22fe3908fcbc20 @maddox committed Oct 28, 2009
Showing with 2 additions and 5 deletions.
  1. +1 −4 lib/giant_bomb/search.rb
  2. +1 −1 test/giant_bomb_test.rb
View
@@ -25,10 +25,7 @@ def find_game(keywords)
end
def get_game_info(game_id)
- field_list = %w{developers genres images publishers}
- options = {"field_list" => field_list.join(',')}
- options.merge!(default_query_options)
- response = self.class.get("/game/#{game_id}/", :query => options)
+ response = self.class.get("/game/#{game_id}/", :query => default_query_options)
Game.new(response["results"], self)
end
View
@@ -28,7 +28,7 @@ class GiantBombTest < Test::Unit::TestCase
context 'with good data' do
setup do
stub_get('/search?format=json&api_key=key&resources=game&query=halo', 'search.json')
- stub_get('/game/24035/?format=json&api_key=key&field_list=developers%2Cgenres%2Cimages%2Cpublishers', 'get_info.json')
+ stub_get('/game/24035/?format=json&api_key=key', 'get_info.json')
@game = @gb.find_game('halo').first
end

0 comments on commit 45e004d

Please sign in to comment.