Cleaning up indent spacing in test file.
This commit is contained in:
parent
020e8050bc
commit
185da24fc3
@ -93,14 +93,14 @@ class RoccoLanguageDetection < Test::Unit::TestCase
|
||||
def test_fallback_default
|
||||
r = Rocco.new( 'filename.an_extension_with_no_meaning_whatsoever' ) { "" }
|
||||
if r.pygmentize?
|
||||
assert_equal "ruby", r.detect_language(), "`detect_language()` should return `ruby` when nothing else is detected"
|
||||
assert_equal "text", r.detect_language(), "`detect_language()` should return `text` when nothing else is detected"
|
||||
assert_equal "ruby", r.options[:language], "`@options[:language]` should be set to `ruby` when nothing else is detected"
|
||||
end
|
||||
end
|
||||
def test_fallback_user
|
||||
r = Rocco.new( 'filename.an_extension_with_no_meaning_whatsoever', '', { :language => "c" } ) { "" }
|
||||
if r.pygmentize?
|
||||
assert_equal "c", r.detect_language(), "`detect_language()` should return the user's setting when nothing else is detected"
|
||||
assert_equal "text", r.detect_language(), "`detect_language()` should return `text` nothing else is detected"
|
||||
assert_equal "c", r.options[:language], "`@options[:language]` should be set to the user's setting when nothing else is detected"
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user