mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-30 22:08:49 +01:00
Each of the individual query chunks has their own test, in addition to a test for the full combination of parameters that could influence a query. There is also a bugfix for the tag query in here, since I want, as much as possible, to have passing tests on every commit.
37 lines
564 B
YAML
37 lines
564 B
YAML
# Todo 1 should be tagged with foo and bar
|
|
foo_bar1:
|
|
id: 1
|
|
tag_id: 1
|
|
taggable_id: 1 # Call Bill Gates
|
|
taggable_type: Todo
|
|
|
|
foo_bar2:
|
|
id: 2
|
|
tag_id: 2
|
|
taggable_id: 1 # Call Bill Gates
|
|
taggable_type: Todo
|
|
|
|
# Todo 2 should be tagged with foo
|
|
foo1:
|
|
id: 3
|
|
tag_id: 1
|
|
taggable_id: 2 # Call dinosaur exterminator
|
|
taggable_type: Todo
|
|
|
|
foo2:
|
|
id: 4
|
|
tag_id: 1
|
|
taggable_id: 3 # Buy milk - completed
|
|
taggable_type: Todo
|
|
|
|
bar1:
|
|
id: 5
|
|
tag_id: 2
|
|
taggable_id: 16
|
|
taggable_type: Todo
|
|
|
|
bar2:
|
|
tag_id: 2
|
|
taggable_id: 20
|
|
taggable_type: Todo
|
|
|