Sha256: ab366585bd50c8057b885eeaf8edc6bd2ad266ec5c84e9b1e80d84b9af01533a
Contents?: true
Size: 770 Bytes
Versions: 1
Compression:
Stored size: 770 Bytes
Contents
# frozen_string_literal: true require 'gir_ffi_test_helper' # Tests behavior of objects in the generated GtkSource namespace. describe 'The generated GtkSource module' do before do begin GirFFI.setup :GtkSource rescue skip 'GtkSource GIR not available' end end describe 'GtkSource::CompletionContext' do let(:instance) { GtkSource::CompletionContext.new } it 'allows adding proposals' do proposals = [ GtkSource::CompletionItem.new('Proposal 1', 'Proposal 1', nil, 'blah 1'), GtkSource::CompletionItem.new('Proposal 2', 'Proposal 2', nil, 'blah 2'), GtkSource::CompletionItem.new('Proposal 3', 'Proposal 3', nil, 'blah 3') ] instance.add_proposals nil, proposals, true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.11.1 | test/integration/generated_gtk_source_test.rb |