Skip to content

Commit

Permalink
Match line semantics.
Browse files Browse the repository at this point in the history
  • Loading branch information
hopsoft committed Nov 15, 2014
1 parent b0eb154 commit 89ff541
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/micro_test/formatters/helpers/default_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ def assert_lines(assert)
finish = assert[:lines].length - 1 if finish >= assert[:lines].length
(start..finish).map do |i|
{
:number => (i + 1),
:color => (i == index ? :red : :default),
:code => assert[:lines][i]
:line_num => (i + 1),
:line => assert[:lines][i],
:color => (i == index ? :red : :default)
}
end
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%= @context[:file_path].strip %>:<%= red @context[:line_num] %>
-------------------------------------------------------------
<% assert_lines(@context).each do |line| -%>
<%= send line[:color], line[:number].to_s.rjust(3, "0") -%>| <%= send line[:color], line[:code] -%>
<%= send line[:color], line[:line_num].to_s.rjust(3, "0") -%>| <%= send line[:color], line[:line] -%>
<% end -%>

0 comments on commit 89ff541

Please sign in to comment.