diff --git a/lib/wrapper/resources/artist.rb b/lib/wrapper/resources/artist.rb index 0758921..f26f0ef 100644 --- a/lib/wrapper/resources/artist.rb +++ b/lib/wrapper/resources/artist.rb @@ -11,7 +11,9 @@ class Discogs::Artist < Discogs::Resource :namevariations, :aliases, :members, - :releases + :releases, + :profile, + :data_quality def main_releases filter_releases("Main") diff --git a/spec/samples/valid_artist.xml b/spec/samples/valid_artist.xml index 5fdca25..7d89549 100644 --- a/spec/samples/valid_artist.xml +++ b/spec/samples/valid_artist.xml @@ -7,6 +7,8 @@ Root Rootan + Richard David James was born to Welsh parents + Needs Vote http://www.root.net http://www.rootan.com diff --git a/spec/wrapper_methods/get_artist_spec.rb b/spec/wrapper_methods/get_artist_spec.rb index b025431..1953d32 100644 --- a/spec/wrapper_methods/get_artist_spec.rb +++ b/spec/wrapper_methods/get_artist_spec.rb @@ -30,6 +30,14 @@ @artist.realname.should == "Rootan" end + it "should have a profile attribute" do + @artist.profile.should == "Richard David James was born to Welsh parents" + end + + it "should have a data_quality attribute" do + @artist.data_quality.should == "Needs Vote" + end + it "should have one or more aliases" do @artist.aliases.should be_instance_of(Array) @artist.aliases[0].should == "Roooot"