BVB Source Codes

rouge Show xml_spec.rb Source code

Return Download rouge: download xml_spec.rb Source code - Download rouge Source code - Type:.rb
  1. # -*- coding: utf-8 -*- #
  2.  
  3. describe Rouge::Lexers::XML do
  4.   let(:subject) { Rouge::Lexers::XML.new }
  5.  
  6.   describe 'guessing' do
  7.     include Support::Guessing
  8.  
  9.     it 'guesses by filename' do
  10.       assert_guess :filename => 'foo.xml'
  11.       assert_guess :filename => 'foo.xsl'
  12.       assert_guess :filename => 'foo.rss'
  13.       assert_guess :filename => 'foo.xslt'
  14.       assert_guess :filename => 'foo.xsd'
  15.       assert_guess :filename => 'foo.wsdl'
  16.       assert_guess :filename => 'foo.svg'
  17.     end
  18.  
  19.     it 'guesses by mimetype' do
  20.       assert_guess :mimetype => 'text/xml'
  21.       assert_guess :mimetype => 'application/xml'
  22.       assert_guess :mimetype => 'image/svg+xml'
  23.       assert_guess :mimetype => 'application/rss+xml'
  24.       assert_guess :mimetype => 'application/atom+xml'
  25.     end
  26.  
  27.     it 'guesses by source' do
  28.       assert_guess :source => '<xml></xml>'
  29.       assert_guess :source => '<?xml version="1.0" encoding="utf-8"?>'
  30.       assert_guess :source => '<!DOCTYPE xml>'
  31.       deny_guess   :source => '<!DOCTYPE html>'
  32.     end
  33.   end
  34. end
  35.  
downloadxml_spec.rb Source code - Download rouge Source code
Related Source Codes/Software:
spring-security-oauth - Support for adding OAuth1(a) and OAuth2 features (... 2017-04-23
Toucan - Fabulous Image Processing in Swift 2017-04-23
CoffeeScriptRedux - 2017-04-23
breakpoint - Really simple media queries in Sa 2017-04-23
libsvm - 2017-04-22
sphinx_rtd_theme - Sphinx theme for readthedocs.org 2017-04-23
BlurEffectForAndroidDesign - Sample to show how to implement blur graphical tri... 2017-04-23
mama2 - Mother plan - all firewood high flame 2017-04-23
JKeyboardPanelSwitch - For resolve the layout conflict when keybord & amp... 2017-04-23
viz.js - A hack to put Graphviz on the web. ... 2017-04-23
browser-diet - 2017-04-30
react-music - Make beats with React! http... 2017-04-30
java-code-styles - IntelliJ IDEA code style settings for Square's Jav... 2017-04-30
swing - A swipeable cards interface. The swipe-left/swipe-... 2017-04-30
qTip2 - qTip2 - Pretty powerful tooltips ... 2017-04-30
jo - JSON output from a shell 2017-04-30
Fluidbox - Replicating and improving the lightbox module seen... 2017-04-30
boto3 - AWS SDK for Python http://a... 2017-04-30
PreloadJS - PreloadJS makes preloading assets & getting ag... 2017-04-29
gotraining - Go Training Class Material : ... 2017-04-29

 Back to top