Sha256: bb7c7c275e5415e7d21441597091acea1005ca696ddb97401932504ffbedd8cb
Contents?: true
Size: 688 Bytes
Versions: 2
Compression:
Stored size: 688 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper' class BadEncodingsTest < Test::Unit::TestCase context 'A file with bad encodings' do should 'fail' do bad_file = File.dirname(__FILE__) + '/bad_encodings/bad1.rb' bad_lines = BadEncodings.find_lines_in_file(bad_file) assert_equal bad_lines.class, Array assert_equal bad_lines[0][1], 4 end end context 'A path with bad encodings' do should 'fail' do bad_lines = BadEncodings.find_lines_in_path(File.dirname(__FILE__)) assert_equal bad_lines.class, Array assert_equal bad_lines[0][1], 1 assert_equal bad_lines[1][1], 3 assert_equal bad_lines[2][1], 4 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
adamsalter-bad_encodings-ruby19-0.1.0 | test/bad_encodings_test.rb |
adamsalter-bad_encodings-ruby19-0.1.1 | test/bad_encodings_test.rb |