Sha256: 7a7152f1dced66adae66fe1888e731c1a28fda7a47f89e960e4507176fbcd813

Contents?: true

Size: 658 Bytes

Versions: 3

Compression:

Stored size: 658 Bytes

Contents

require 'rubygems'
require 'spec'

require File.expand_path(
    File.join(File.dirname(__FILE__), %w[.. lib ffi-generator]))

Spec::Runner.configure do |config|
  # == Mock Framework
  #
  # RSpec uses it's own mocking framework by default. If you prefer to
  # use mocha, flexmock or RR, uncomment the appropriate line:
  #
  # config.mock_with :mocha
  # config.mock_with :flexmock
  # config.mock_with :rr
end

def generate_xml_wrap_from(fn)
  `swig -xml spec/generator/swig/#{fn + '.i'}`
  Nokogiri::XML(File.open(File.join('spec/generator/swig/', "#{fn}_wrap.xml")))
end

def remove_xml
  FileUtils.rm(Dir.glob('spec/generator/swig/*.xml'))
end

# EOF

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
remogatto-ffi-generator-0.1.0 spec/spec_helper.rb
remogatto-ffi-generator-0.2.0 spec/spec_helper.rb
remogatto-ffi-swig-generator-0.2.0 spec/spec_helper.rb