Sha256: 506d479df8f0954b860109f4396d5a7359cf59842a9dfa19cc2185186b3bf4c0
Contents?: true
Size: 480 Bytes
Versions: 8
Compression:
Stored size: 480 Bytes
Contents
require File.expand_path('../gir_ffi_test_helper.rb', File.dirname(__FILE__)) describe GirFFI::Builder::Type::Constant do describe "#pretty_print" do it "returns the correct assignment statement" do mock(info = Object.new).value { "bar" } mock(info).safe_name { "FOO_CONSTANT" } stub(info).namespace { "Foo" } builder = GirFFI::Builder::Type::Constant.new(info) assert_equal "FOO_CONSTANT = \"bar\"", builder.pretty_print end end end
Version data entries
8 entries across 8 versions & 1 rubygems