1
0
mirror of https://github.com/github/choosealicense.com synced 2024-11-05 19:28:50 +01:00

whoops, test looking at wrong file extension

This commit is contained in:
Mike Linksvayer 2017-11-19 11:10:38 -08:00
parent d6c6f9c4af
commit bb49e4c1f7

View File

@ -3,7 +3,7 @@
require 'spec_helper'
describe 'byte order marks' do
Dir["#{licenses_path}/*.html"].each do |file|
Dir["#{licenses_path}/*.txt"].each do |file|
context "the #{File.basename(file, '.txt')} license" do
it 'does not begin with a byte order mark' do
bom = File.open(file).read.start_with?("\u0000EF\u0000BB\u0000BF")