Permalink
Browse files

Cleaning up indent spacing in test file.

  • Loading branch information...
1 parent 020e805 commit 185da24fc3a00e598d5c2ab0b646321338b5ccca @mikewest mikewest committed Oct 20, 2010
Showing with 6 additions and 6 deletions.
  1. +6 −6 test/rocco_test.rb
View
@@ -86,22 +86,22 @@ class RoccoLanguageDetection < Test::Unit::TestCase
def test_basic_detection
r = Rocco.new( 'filename.py' ) { "" }
if r.pygmentize?
- assert_equal "python", r.detect_language(), "`detect_language()` should return the correct language"
- assert_equal "python", r.options[:language], "`@options[:language]` should be set to the correct language"
+ assert_equal "python", r.detect_language(), "`detect_language()` should return the correct language"
+ assert_equal "python", r.options[:language], "`@options[:language]` should be set to the correct language"
end
end
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 "ruby", r.options[:language], "`@options[:language]` should be set to `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 "c", r.options[:language], "`@options[:language]` should be set to 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
end

0 comments on commit 185da24

Please sign in to comment.