Sha256: faa8e40fcca139d2224c642ab572636068736bc15c9283379578e238baf3dc1e
Contents?: true
Size: 654 Bytes
Versions: 25
Compression:
Stored size: 654 Bytes
Contents
# frozen_string_literal: true require_relative '../../../spec_helper' asset_directory = File.expand_path('../../../../../assets', __FILE__) asset_file_paths = Dir.glob(File.join(asset_directory, 'message-bus.js')) asset_file_names = asset_file_paths.map { |e| File.basename(e) } describe asset_file_names do it 'should contain .js files' do asset_file_names.must_include('message-bus.js') end end asset_file_paths.each do |path| describe "Asset file #{File.basename(path).inspect}" do it 'should be encodable as UTF8' do binary_data = File.open(path, 'rb') { |f| f.read } binary_data.encode(Encoding::UTF_8) end end end
Version data entries
25 entries across 25 versions & 1 rubygems