Sha256: 94f93c9c596f282dc799e7513b91dcaed0cec11e2cf9ba7ac3e8297f3d8ec8db
Contents?: true
Size: 541 Bytes
Versions: 2
Compression:
Stored size: 541 Bytes
Contents
require 'gir_ffi_test_helper' describe GirFFI::InfoExt::SafeFunctionName do let(:klass) { Class.new do include GirFFI::InfoExt::SafeFunctionName 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.7.10 | test/gir_ffi/info_ext/safe_function_name_test.rb |
gir_ffi-0.7.9 | test/gir_ffi/info_ext/safe_function_name_test.rb |