Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/ruby/core/array/sort_by_spec.rb
Original file line number Diff line number Diff line change
@@ -44,5 +44,9 @@
partially_sorted.any?{|ary| ary != [1, 2, 3, 4, 5]}.should be_true
end

it "changes nothing when called on a single element array" do
[1].sort_by!(&:to_s).should == [1]
end

it_behaves_like :enumeratorized_with_origin_size, :sort_by!, [1,2,3]
end

0 comments on commit 95208a8

Please sign in to comment.