Sha256: 49b71d5f291ab7eb42145c06a3ecbc1c8ce57975de7e4614b5ce8202e7c84d0f
Contents?: true
Size: 748 Bytes
Versions: 1
Compression:
Stored size: 748 Bytes
Contents
require 'rubygems' require 'spec' $:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '../lib/'))) require 'ffi-swig-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 share_examples_for "All specs" do after :all do remove_xml end end # EOF
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffi-swig-generator-0.3.2 | spec/spec_helper.rb |