Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

change output to JSON

  • Loading branch information...
commit 504b90ef984b5d476445e405c66215333b5ec0c1 1 parent 28ec1c5
@dstnbrkr dstnbrkr authored committed
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/itunes_link_maker.rb
  2. +1 −1  spec/itunes_link_maker_spec.rb
View
2  lib/itunes_link_maker.rb
@@ -24,7 +24,7 @@ class ItunesLinkMaker
'country' => 'US',
'WOURLEncoding' => 'ISO8859_1',
'lang' => '1',
- 'output' => 'lm'
+ 'output' => 'json'
}
def self.default_options
View
2  spec/itunes_link_maker_spec.rb
@@ -20,7 +20,7 @@ def search
it "should send a GET request to the iTunes search URL" do
ItunesLinkMaker.should_receive(:open).with(
- "http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStoreServices.woa/wa/itmsSearch?WOURLEncoding=ISO8859_1&lang=1&output=lm&country=US&term=search+query&media=music"
+ "http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStoreServices.woa/wa/itmsSearch?WOURLEncoding=ISO8859_1&lang=1&output=json&country=US&term=search+query&media=music"
).and_return(@open_result)
search
end
Please sign in to comment.
Something went wrong with that request. Please try again.