spec/soundcloud_user_spec.rb in soundcloud-ruby-api-wrapper-0.1.9 vs spec/soundcloud_user_spec.rb in soundcloud-ruby-api-wrapper-0.2.0

- old
+ new

@@ -23,11 +23,11 @@ end it 'should find all api-test users' do test_for = 'api-test' users = @sc.User.find(:all , :params => {:q => test_for}) - users.count.should be >= 3 + users.length.should be >= 3 end it 'should check if a user has a contact' do @api_test_2.has_contact?(@api_test_3).should be true @api_test_2.has_contact?(@api_test_3.id).should be true @@ -53,15 +53,15 @@ my_user = @sc.User.find_me my_user.username.should_not be nil end it 'should find some fans of a user' do - @api_test_2.fans.count.should be >= 1 + @api_test_2.fans.length.should be >= 1 end it 'should find exactly one fan / two fans' do - @api_test_2.fans({:limit => 1}).count.should be == 1 - @api_test_2.fans({:limit => 2}).count.should be == 2 + @api_test_2.fans({:limit => 1}).length.should be == 1 + @api_test_2.fans({:limit => 2}).length.should be == 2 end end