Sha256: 30af5fbec4d366d38033c1a5750b98e548703dd0ecd90b49d8032f660eb08643
Contents?: true
Size: 916 Bytes
Versions: 6
Compression:
Stored size: 916 Bytes
Contents
require 'rubygems' require 'ruby_speech' require 'mocha' include RubySpeech::GRXML include RubySpeech::XML::Language Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f} schema_file_path = File.expand_path File.join(__FILE__, '../../assets/synthesis.xsd') puts "Loading the SSML Schema from #{schema_file_path}..." SSML_SCHEMA = Nokogiri::XML::Schema File.open(schema_file_path) puts "Finished loading schema." schema_file_path = File.expand_path File.join(__FILE__, '../../assets/grammar.xsd') puts "Loading the GRXML Schema from #{schema_file_path}..." GRXML_SCHEMA = Nokogiri::XML::Schema File.open(schema_file_path) puts "Finished loading schema." RSpec.configure do |config| config.mock_with :mocha config.filter_run :focus => true config.run_all_when_everything_filtered = true end def parse_xml(xml) Nokogiri::XML.parse xml, nil, nil, Nokogiri::XML::ParseOptions::NOBLANKS end
Version data entries
6 entries across 6 versions & 1 rubygems