Navigation Menu

Skip to content

Commit

Permalink
Add a test for beginning of text anchor (\A) of Regexp for query string
Browse files Browse the repository at this point in the history
GitHub: #70
  • Loading branch information
Masafumi Yokoyama committed Apr 8, 2015
1 parent 76a7f4b commit d8e1620
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test-expression-builder.rb
Expand Up @@ -313,6 +313,12 @@ def test_not_match
assert_equal([],
result.collect {|record| record.key.key}.sort)
end

def test_beginning_of_text
result = @users.select("name:~\\\\As")
assert_equal(["suzuki"],
result.collect {|record| record.key.key}.sort)
end
end
end

Expand Down

0 comments on commit d8e1620

Please sign in to comment.