Skip to content

Commit 44407c0

Browse files
committed
use no variable for expected value
1 parent ab35541 commit 44407c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/sort_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
it "should work for a container of size 1" do
1717
one_array = [1]
18-
@sorts.each { |sort| Sort.send(sort, one_array).should eql(one_array) }
18+
@sorts.each { |sort| Sort.send(sort, one_array).should eql([1]) }
1919
end
2020

2121
it "should work for random arrays of numbers" do
@@ -26,4 +26,4 @@
2626
@sorts.each { |sort| Sort.send(sort, rand_array.dup).should eql(sorted_array) }
2727
end
2828

29-
end
29+
end

0 commit comments

Comments
 (0)