This repository has been archived by the owner on Sep 13, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding a test to find default regexp nodes.
- Loading branch information
1 parent
ba53081
commit e95aeac
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
require 'helper' | |||
|
|||
module Journey | |||
module Nodes | |||
class TestSymbol < MiniTest::Unit::TestCase | |||
def test_default_regexp? | |||
sym = Symbol.new nil | |||
assert sym.default_regexp? | |||
|
|||
sym.regexp = nil | |||
refute sym.default_regexp? | |||
end | |||
end | |||
end | |||
end |