File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ script: bundle exec rake test
2
2
rvm :
3
3
- 1.9.3
4
4
- 2.0.0
5
+ - 2.2.0
5
6
before_install :
6
7
- gem update --system
7
8
- gem --version
11
12
- RAILS=3.1.12
12
13
- RAILS=3.2.14
13
14
matrix :
14
- allow_failures :
15
+ exclude :
15
16
- rvm : 2.0.0
17
+ env : RAILS=3.0.20
18
+ - rvm : 2.2.0
19
+ env : RAILS=3.0.20
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ when /^3\.(1|2)/
17
17
# These are the gems you have to have for Rails 3.1 to be happy
18
18
gem 'sass-rails'
19
19
gem 'uglifier'
20
+ gem "test-unit" , "~>3.0" # a rails 3.2 on ruby 2.2 requirement
20
21
else
21
22
raise "Rails #{ rails_version } is not supported yet"
22
23
end
Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ module Collection
7
7
# the ORDER statement mentions a column defined in the SELECT statement.
8
8
#
9
9
# We remove the ORDER statement to work around this issue.
10
- def collection_size ( collection = collection )
10
+ def collection_size ( collection = collection ( ) )
11
11
size = collection . reorder ( "" ) . count
12
12
# when GROUP BY is used, AR returns Hash instead of Fixnum for .size
13
13
size = size . size if size . kind_of? ( Hash )
14
14
15
15
size
16
16
end
17
17
18
- def collection_is_empty? ( collection = collection )
18
+ def collection_is_empty? ( collection = collection ( ) )
19
19
collection_size ( collection ) == 0
20
20
end
21
21
end
You can’t perform that action at this time.
0 commit comments