Skip to content

Commit

Permalink
Fix Ruby 1.8 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
MischaTheEvil committed Jun 15, 2017
1 parent 2dc6ddd commit 830c176
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/functional/basic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -166,16 +166,16 @@ def test_supported_languages_should_include_languages

def test_supported_languages_without_arguments_should_include_aliases_and_exclude_internals
assert CodeRay.supported_languages.include?(:javascript)
refute CodeRay.supported_languages.include?(:debug)
assert !CodeRay.supported_languages.include?(:debug)
end

def test_supported_languages_with_arguments_should_include_aliases_and_exclude_internals
assert CodeRay.supported_languages(true, false).include?(:javascript)
refute CodeRay.supported_languages(true, false).include?(:debug)
assert !CodeRay.supported_languages(true, false).include?(:debug)
end

def test_supported_languages_with_arguments_should_exclude_aliases_and_include_internals
refute CodeRay.supported_languages(false, true).include?(:javascript)
assert !CodeRay.supported_languages(false, true).include?(:javascript)
assert CodeRay.supported_languages(false, true).include?(:debug)
end

Expand All @@ -185,8 +185,8 @@ def test_supported_languages_with_arguments_should_include_aliases_and_internals
end

def test_supported_languages_with_arguments_should_exclude_aliases_and_internals
refute CodeRay.supported_languages(false, false).include?(:javascript)
refute CodeRay.supported_languages(false, false).include?(:debug)
assert !CodeRay.supported_languages(false, false).include?(:javascript)
assert !CodeRay.supported_languages(false, false).include?(:debug)
end

def test_token_kinds
Expand Down

0 comments on commit 830c176

Please sign in to comment.