Sha256: acade16b6db7689da37c412960d5d24c63638d2032b4b17cf62944631c905706
Contents?: true
Size: 575 Bytes
Versions: 3
Compression:
Stored size: 575 Bytes
Contents
# frozen_string_literal: true require 'gir_ffi_test_helper' describe GirFFI::InfoExt::SafeFunctionName do let(:klass) do Class.new do include GirFFI::InfoExt::SafeFunctionName end end let(:info) { klass.new } describe '#safe_name' do it 'keeps lower case names lower case' do expect(info).to receive(:name).and_return 'foo' assert_equal 'foo', info.safe_name end it 'returns a non-empty string if name is empty' do expect(info).to receive(:name).and_return '' assert_equal '_', info.safe_name end end end
Version data entries
3 entries across 3 versions & 1 rubygems