spec/itunes_spec.rb in itunes-0.4.1 vs spec/itunes_spec.rb in itunes-0.5.0

- old
+ new

@@ -6,17 +6,33 @@ end use_vcr_cassette :record => :new_episodes, :match_requests_on => [:uri, :method] context "when delegating to a client" do - it "should return the same results as a client" do ITunes.music('Jose James').should == ITunes::Client.new.music('Jose James') end + end + describe '.client' do + it 'should return and ITunes::Client' do + ITunes.client.should be_a ITunes::Client + end end + describe '.respond_to?' do + it "should take an optional argument" do + ITunes.respond_to?(:new, true).should be_true + end + end + + describe ".new" do + it "should return an ITunes::Client" do + ITunes.new.should be_a ITunes::Client + end + end + describe ".limit" do it 'should return the default limit' do ITunes.limit.should == ITunes::Configuration::DEFAULT_LIMIT end end @@ -40,10 +56,9 @@ ITunes.adapter.should == :typhoeus end end describe ".configure" do - ITunes::Configuration::VALID_OPTIONS_KEYS.each do |key| it "should set the #{key}" do ITunes.configure do |config| config.send("#{key}=", key) ITunes.send(key).should == key \ No newline at end of file