tracks/test/fixtures/taggings.yml
Matt Rogers fc17a03bc0
Add tests for the new object and fix a bug
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.
2019-04-11 09:53:53 -05:00

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