Skip to content

Commit ef693fb

Browse files
committed
Fix TextWidth spec for Ruby 1.9.3
The test was failing since `#lines` returns an Enumerator in 1.9.3. Ensure it is an array.
1 parent bd7aa39 commit ef693fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/overcommit/hook/commit_msg/text_width_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
subject { described_class.new(config, context) }
77

88
before do
9-
context.stub(:commit_message_lines).and_return(commit_msg.lines)
9+
context.stub(:commit_message_lines).and_return(commit_msg.lines.to_a)
1010
context.stub(:empty_message?).and_return(commit_msg.empty?)
1111
end
1212

0 commit comments

Comments
 (0)