Permalink
Browse files

removing some warnings in 1.8.7 and 1.9.2

  • Loading branch information...
1 parent 6ed5a20 commit cc7ab1d4248935e83e23d3da2183527c9834294e @semanticart semanticart committed Aug 25, 2011
Showing with 5 additions and 5 deletions.
  1. +1 −1 lib/dribbble/base.rb
  2. +2 −2 test/player_test.rb
  3. +2 −2 test/shot_test.rb
View
@@ -14,7 +14,7 @@ def initialize(attributes=nil)
end
def get(*args, &block)
- self.class.get *args, &block
+ self.class.get(*args, &block)
end
def created_at
View
@@ -85,8 +85,8 @@ def test_following
player = Dribbble::Player.find(1)
following = player.following
assert_equal 15, following.size, "default page size"
- following.each do |following|
- assert_kind_of Dribbble::Player, following
+ following.each do |following_player|
+ assert_kind_of Dribbble::Player, following_player
end
following = player.following(:per_page => 2)
View
@@ -28,8 +28,8 @@ def test_find
assert_equal 21603, shot.id
assert_equal 'Moon', shot.title
assert_equal 'http://dribbble.com/shots/21603-Moon', shot.url
- assert_match /http:\/\/dribbble.com\/system\/users\/1\/screenshots\/21603\/shot_1274474082.png\?\d+/, shot.image_url
- assert_match /http:\/\/dribbble.com\/system\/users\/1\/screenshots\/21603\/shot_1274474082_teaser.png\?\d+/, shot.image_teaser_url
+ assert_match(/http:\/\/dribbble.com\/system\/users\/1\/screenshots\/21603\/shot_1274474082.png\?\d+/, shot.image_url)
+ assert_match(/http:\/\/dribbble.com\/system\/users\/1\/screenshots\/21603\/shot_1274474082_teaser.png\?\d+/, shot.image_teaser_url)
assert_equal 400, shot.width
assert_equal 300, shot.height

0 comments on commit cc7ab1d

Please sign in to comment.