Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix spec to work in pre 1.9 ruby

  • Loading branch information...
commit 34e40e7f541d6ff5805ef310b6afdae3f1c639b5 1 parent ff14d20
Wesley Beary authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  spec/googleajax_common.rb
View
2  spec/googleajax_common.rb
@@ -13,7 +13,7 @@
end
it "returns the expected results" do
- @response['results'].count{|result| result['url'] =~ /http:(.*).apple.com/}.should >= 4
+ @response['results'].select{|result| result['url'] =~ /http:(.*).apple.com/}.size.should >= 4
end
end

2 comments on commit 34e40e7

@marcandre
Collaborator

Oups, I have not installed Ruby 1.8.6 on my machine at work...
BTW, Enumerable#count is in 1.8.7+

@geemus
Owner

Fair enough, I happened to be running it in 'Apple ruby' as it were.

Please sign in to comment.
Something went wrong with that request. Please try again.