meta-spotify 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -48,6 +48,9 @@ class TestAlbum < Test::Unit::TestCase
48
48
  assert_kind_of MetaSpotify::Album, @result
49
49
  assert_equal "Remedy", @result.name
50
50
  assert_equal "1999", @result.released
51
+ assert_equal "634904012922", @result.upc
52
+ assert_equal "3a3685aa-9c4d-42f8-a401-e34a89494041", @result.musicbrainz_id
53
+ assert_equal "http://www.allmusic.com/cg/amg.dll?p=amg&sql=10:dpfixqtkld0e", @result.allmusic_uri
51
54
  end
52
55
  should "create an artist object for that album" do
53
56
  assert_kind_of Array, @result.artists
@@ -38,4 +38,18 @@ class TestArtist < Test::Unit::TestCase
38
38
  end
39
39
  end
40
40
  end
41
+
42
+ context "looking up an artist with detailed album information" do
43
+ setup do
44
+ FakeWeb.register_uri(:get,
45
+ "http://ws.spotify.com/lookup/1/?extras=albumdetail&uri=#{CGI.escape(ARTIST_URI)}",
46
+ :body => fixture_file("artist_with_albumdetail.xml"))
47
+ @result = MetaSpotify::Artist.lookup(ARTIST_URI, :extras => 'albumdetail')
48
+ end
49
+ should "fetch an artist and return an artist object with detailed album information" do
50
+ assert_kind_of MetaSpotify::Artist, @result
51
+ assert_kind_of MetaSpotify::Album, @result.albums.first
52
+ assert_equal "Jaxx Unreleased", @result.albums.first.name
53
+ end
54
+ end
41
55
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meta-spotify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phil Nash
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-08 00:00:00 +00:00
12
+ date: 2009-11-15 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,17 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: "0"
23
+ version: 0.4.5
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: crack
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.1.4
24
34
  version:
25
35
  - !ruby/object:Gem::Dependency
26
36
  name: thoughtbot-shoulda
@@ -68,6 +78,7 @@ files:
68
78
  - test/fixtures/album_search.xml
69
79
  - test/fixtures/artist.xml
70
80
  - test/fixtures/artist_search.xml
81
+ - test/fixtures/artist_with_albumdetail.xml
71
82
  - test/fixtures/track.xml
72
83
  - test/fixtures/track_search.xml
73
84
  - test/fixtures/track_search_page_2.xml