Navigation Menu

Skip to content

Commit

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

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

class QueryStringTest < self
Expand Down

0 comments on commit 0926b4f

Please sign in to comment.