require "spec_helper"

describe LastFM::Track do
  it "should define unrestricted methods" do
    LastFM::Track.should respond_to(
      :get_buy_links, :get_correction, :get_fingerprint_metadata, :get_info,
      :get_similar, :get_top_fans, :get_top_tags, :search
    )
  end

  it "should define restricted methods" do
    LastFM::Track.should respond_to(
      :get_tags, :add_tags, :ban, :love, :remove_tag, :scrobble, :share, :unban,
      :unlove, :update_now_playing
    )
  end
end

require "spec_helper"

describe LastFM::Track do
  it "should define unrestricted methods" do
    LastFM::Track.unrestricted_methods.should == [:get_buy_links, :get_correction, :get_fingerprint_metadata, :get_info, :get_similar, :get_top_fans, :get_top_tags, :search]
  end

  it "should define restricted methods" do
    LastFM::Track.restricted_methods.should == [:add_tags, :ban, :get_tags, :love, :remove_tag, :share, :unban, :unlove]
  end
end

--- 
+++ 
@@ -2,10 +2,16 @@
 
 describe LastFM::Track do
   it "should define unrestricted methods" do
-    LastFM::Track.unrestricted_methods.should == [:get_buy_links, :get_correction, :get_fingerprint_metadata, :get_info, :get_similar, :get_top_fans, :get_top_tags, :search]
+    LastFM::Track.should respond_to(
+      :get_buy_links, :get_correction, :get_fingerprint_metadata, :get_info,
+      :get_similar, :get_top_fans, :get_top_tags, :search
+    )
   end
 
   it "should define restricted methods" do
-    LastFM::Track.restricted_methods.should == [:add_tags, :ban, :get_tags, :love, :remove_tag, :share, :unban, :unlove]
+    LastFM::Track.should respond_to(
+      :get_tags, :add_tags, :ban, :love, :remove_tag, :scrobble, :share, :unban,
+      :unlove, :update_now_playing
+    )
   end
 end
Check method definitions for Track
