mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 04:40:09 +01:00
parent
45c02a892c
commit
6854e8aa86
16
spec/license_bom_spec.rb
Normal file
16
spec/license_bom_spec.rb
Normal file
@ -0,0 +1,16 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe "license file" do
|
||||
|
||||
bom = "\xEF\xBB\xBF".each_byte.to_a
|
||||
|
||||
files = Dir["_licenses/*.txt"]
|
||||
|
||||
files.each do |fn|
|
||||
first3 = File.open(fn) {|f| f.read(3)}
|
||||
|
||||
it "#{fn} should not have a byte order mark" do
|
||||
expect(first3.each_byte.to_a).not_to eq(bom)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user