Skip to content

Commit

Permalink
Make mac_format? private
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Jun 10, 2013
1 parent 91284e5 commit c7100be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/linguist/blob_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def line_split_character
@line_split_character ||= (mac_format?? "\r" : "\n")
end

# Public: Is the data in ** Mac Format **. This format uses \r (0x0d) characters
# Private: Is the data in ** Mac Format **. This format uses \r (0x0d) characters
# for line ends and does not include a \n (0x0a).
#
# Returns true when mac format is detected.
Expand Down
6 changes: 1 addition & 5 deletions test/test_blob.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,9 @@ def test_lines
assert_equal ["module Foo", "end", ""], blob("Ruby/foo.rb").lines
end

def test_mac_format
assert blob("Text/mac.txt").mac_format?
assert !blob("Emacs Lisp/ess-julia.el").mac_format?
end

def test_lines_mac_format
assert_equal ["line 1", "line 2", ""], blob("Text/mac.txt").lines
assert_equal 473, blob("Emacs Lisp/ess-julia.el").lines.length
end

def test_size
Expand Down

0 comments on commit c7100be

Please sign in to comment.