Added test for prefix match
Andrew Kane
committed Jun 21, 2016
commit a8dd5ba460c5634e7ebe3ebdca1ab30b45d116b0
Showing 1
changed file with
5 additions
and 0 deletions
test/test_helper.rb
+5
-0
| @@ | @@ -84,6 +84,11 @@ module PropertiesTest |
| assert_equal 0, count_events(hello: "world", prop2: "hi") | |
| end | |
| + | def test_prefix |
| + | create_event value: 123 |
| + | assert_equal 0, count_events(value: 1) |
| + | end |
| + | |
| def create_event(properties) | |
| model.create(properties: properties) | |
| end | |