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

Version Path
message_bus-4.3.8 spec/lib/message_bus/assets/asset_encoding_spec.rb
message_bus-4.3.7 spec/lib/message_bus/assets/asset_encoding_spec.rb
message_bus-4.3.6 spec/lib/message_bus/assets/asset_encoding_spec.rb
message_bus-4.3.4 spec/lib/message_bus/assets/asset_encoding_spec.rb
message_bus-4.3.3 spec/lib/message_bus/assets/asset_encoding_spec.rb
message_bus-4.3.2 spec/lib/message_bus/assets/asset_encoding_spec.rb
message_bus-4.3.1 spec/lib/message_bus/assets/asset_encoding_spec.rb
message_bus-4.3.0 spec/lib/message_bus/assets/asset_encoding_spec.rb
message_bus-4.2.0 spec/lib/message_bus/assets/asset_encoding_spec.rb
message_bus-4.1.0 spec/lib/message_bus/assets/asset_encoding_spec.rb
message_bus-4.0.0 spec/lib/message_bus/assets/asset_encoding_spec.rb
message_bus-3.4.0 spec/lib/message_bus/assets/asset_encoding_spec.rb
message_bus-3.3.8 spec/lib/message_bus/assets/asset_encoding_spec.rb
message_bus-3.3.7 spec/lib/message_bus/assets/asset_encoding_spec.rb
message_bus-3.3.6 spec/lib/message_bus/assets/asset_encoding_spec.rb
message_bus-3.3.5 spec/lib/message_bus/assets/asset_encoding_spec.rb
message_bus-3.3.4 spec/lib/message_bus/assets/asset_encoding_spec.rb
message_bus-3.3.3 spec/lib/message_bus/assets/asset_encoding_spec.rb
message_bus-3.3.2 spec/lib/message_bus/assets/asset_encoding_spec.rb
message_bus-3.3.1 spec/lib/message_bus/assets/asset_encoding_spec.rb