Sha256: bd7674d65d27104ef09c9d332c992ca0810229a72a75462c79591a642872ca13
Contents?: true
Size: 776 Bytes
Versions: 9
Compression:
Stored size: 776 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require "rubygems" require 'webidl' require 'rspec' require "pp" # require "ruby-debug" # Debugger.start # Debugger.settings[:autoeval] = true # Debugger.settings[:autolist] = 1 module ParseHelper def parse(input) result = @parser.parse(input) unless result raise @parser.failure_reason end result end def generate(str) generator.generate(str) end def generator @generator ||= WebIDL::Generator.new end def fixture(name) File.read("#{File.dirname(__FILE__)}/fixtures/#{name}") end end RSpec.configure do |c| c.include(ParseHelper) c.before(:each) do @parser = WebIDL::Parser::IDLParser.new end end
Version data entries
9 entries across 9 versions & 1 rubygems