##// END OF EJS Templates
Merged r9619 from trunk....
Jean-Philippe Lang -
r9437:e9ac98b249a3
parent child
Show More
@@ -141,7 +141,7 class Repository < ActiveRecord::Base
141 elsif repository.is_default?
141 elsif repository.is_default?
142 1
142 1
143 else
143 else
144 identifier <=> repository.identifier
144 identifier.to_s <=> repository.identifier.to_s
145 end
145 end
146 end
146 end
147
147
@@ -318,4 +318,13 class RepositoryTest < ActiveSupport::TestCase
318 assert_equal "test_value_23",
318 assert_equal "test_value_23",
319 repo.extra_info["test_2"]["test_23"]
319 repo.extra_info["test_2"]["test_23"]
320 end
320 end
321
322 def test_sort_should_not_raise_an_error_with_nil_identifiers
323 r1 = Repository.new
324 r2 = Repository.new
325
326 assert_nothing_raised do
327 [r1, r2].sort
328 end
329 end
321 end
330 end
General Comments 0
You need to be logged in to leave comments. Login now