Sha256: 1649824be7ba07bf39558f9255831fc449c6feb478e45577b96d2b442de29649
Contents?: true
Size: 375 Bytes
Versions: 3
Compression:
Stored size: 375 Bytes
Contents
require 'gir_ffi_test_helper' describe GirFFI::InfoExt::SafeConstantName do let(:klass) { Class.new do include GirFFI::InfoExt::SafeConstantName end } let(:info) { klass.new } describe "#safe_name" do it "makes names starting with an underscore safe" do mock(info).name { "_foo" } assert_equal "Private___foo", info.safe_name end end end
Version data entries
3 entries across 3 versions & 1 rubygems