~ubuntu-branches/ubuntu/utopic/ruby-gir-ffi/utopic-proposed

« back to all changes in this revision

Viewing changes to test/gir_ffi_test.rb

  • Committer: Package Import Robot
  • Author(s): TANIGUCHI Takaki
  • Date: 2014-06-22 16:13:36 UTC
  • mfrom: (10.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20140622161336-zo88bzrlqw71cpyy
Tags: 0.7.4-1
* Imported Upstream version 0.7.4
* Bump Standards-Version to 3.9.5 (with no changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
      before do
68
68
        @klass = Class.new GIMarshallingTests::OverridesObject
69
69
        Object.const_set "DerivedB#{Sequence.next}", @klass
70
 
        @gtype = GirFFI.define_type @klass do
71
 
          install_property GObject.param_spec_int("foo", "foo bar",
72
 
                                                  "The Foo Bar Property",
73
 
                                                  10, 20, 15,
74
 
                                                  3)
 
70
        @gtype = GirFFI.define_type @klass do |info|
 
71
          info.install_property GObject.param_spec_int("foo", "foo bar",
 
72
                                                       "The Foo Bar Property",
 
73
                                                       10, 20, 15,
 
74
                                                       3)
75
75
        end
76
76
      end
77
77