Edit Project

Built ddbed3a successfully

added reference to the CI server

by: Marco Otte-Witte | on Sep 18th | commit: ddbed3aef73d9d9109f4882c7b91a8849fbd17af

Build Output:

(in /srv/www/ci.simplabs.com/builds/marcoow-highlight-master)

Simplabs::Highlight::PygmentsWrapper#get_language_sym
- should return false if the specified language is not supported
- should return the respective symbol if the specified language is given as string and is supported
- should return the respective symbol if the specified language is given as symbol and is supported

Simplabs::Highlight::PygmentsWrapper#highlight
- should return the escaped code if the specified language is not supported
- should create temporary file 
- should write the code to the created file

Simplabs::Highlight#highlight when Highlight is not initialized
- should only CGI excape the passed code

Simplabs::Highlight#highlight when Highlight is initialized
- should call Simplabs::PygmentsWrapper.highlight with the language and code
- should correctly highlight source code passed as parameter

Simplabs::Highlight::ViewMethods#highlight when invoked with a language and a string
- should highlight the code

Simplabs::Highlight::ViewMethods#highlight when invoked with a language and a block
- should highlight the code

Simplabs::Highlight::ViewMethods#highlight when invoked with both a string and a block
- should raise an ArgumentError

Simplabs::Highlight::ViewMethods#highlight when invoked with neither a string nor a block
- should raise an ArgumentError

Finished in 1.942377 seconds

13 examples, 0 failures

Previous builds