Andy Allan
805abe96d0
Create an old_way_node factory, and start using it for tests.
2017-04-25 16:29:13 +02:00
Andy Allan
05a42281ab
Create an old_way factory, and start using it for tests.
2017-04-25 16:29:13 +02:00
Andy Allan
b46028b4f7
Create an old_relation_member factory, and start using it for tests.
2017-04-25 16:29:13 +02:00
Andy Allan
27c3edae25
Create an old_relation factory, and start using it for tests.
2017-04-25 15:19:25 +02:00
Andy Allan
d595577a49
Convert the duplicate_tags node controller test to use factories.
2017-04-24 20:41:43 +02:00
Andy Allan
5ab082a047
Add the closed trait to changeset factories.
2017-03-31 10:47:41 +01:00
Andy Allan
1b7ab315bb
Add factories for relations, relation_members, ways and way_nodes
2017-03-31 10:40:49 +01:00
Andy Allan
66ae9a48a6
For deleted nodes created via factories, make sure the most recent old_node is also deleted
2017-03-30 13:57:07 +01:00
Andy Allan
17e9bcd2d4
Use factories for nodes in browse_helper tests.
2017-03-30 13:19:24 +01:00
Andy Allan
5a0ba2e812
Add a with_history trait for node factories, to automatically create corresponding old_nodes
2017-03-30 09:31:22 +01:00
Tom Hughes
9ae3df1a78
Use changeset factory for association in node factory
2017-03-22 20:31:25 +00:00
Tom Hughes
b78bb9f631
Merge remote-tracking branch 'openstreetmap/pull/1496'
2017-03-22 19:19:59 +00:00
Andy Allan
1a3130ec61
Create a node factory, and use it for most node model tests
2017-03-22 17:50:10 +00:00
Andy Allan
24cd3af31e
Use changeset factory for factory associations
...
One test needed updating since it assumed the comments were being
created on a particular changeset.
2017-03-22 11:09:52 +00:00
Andy Allan
56752ac02a
Create a changeset factory, and use it for model tests.
2017-03-22 10:47:24 +00:00
Tom Hughes
834a821d3c
Merge remote-tracking branch 'openstreetmap/pull/1492'
2017-03-16 19:02:35 +00:00
Andy Allan
a0899d1b0b
Use redactions factory in redaction controller test.
2017-03-15 17:01:41 +00:00
Andy Allan
006627789f
Create a redactions factory and use for model tests.
2017-03-15 16:24:39 +00:00
Andy Allan
5370f9c6a7
Refactor the oauth integration test to avoid using user fixtures.
2017-03-15 16:13:04 +00:00
Andy Allan
eac26c9a2c
Create a super_user factory.
2017-03-09 16:21:51 +00:00
Andy Allan
a3618d2b5f
User factory associations for all factories.
2017-02-22 18:51:45 +00:00
Andy Allan
91f3339b6a
Make all factory-generated users 'normal'
...
The use of create(:normal_user) makes the tests needlessly harder to
understand and reason about, particularly when we start using
associations in the factories.
2017-02-22 18:26:03 +00:00
Andy Allan
737a325f2e
Refactor diary entry tests to use User factory
2017-02-19 16:43:32 +00:00
Tom Hughes
f435fce007
Link GPX fixture files instead of stubbing
2017-02-05 17:26:31 +00:00
Tom Hughes
0814b4096c
Merge remote-tracking branch 'openstreetmap/pull/1347' into master
2017-02-05 16:02:20 +00:00
Tom Hughes
7793cd27ab
Merge remote-tracking branch 'openstreetmap/pull/1423'
2017-02-02 17:21:41 +00:00
Andy Allan
0bd2e9ea8c
Add status traits to user factory.
2017-02-02 12:55:32 +00:00
Andy Allan
38fc6331af
Add moderator_user and administrator_user factories.
2017-02-02 12:38:19 +00:00
Andy Allan
c55169659c
Add a user_role factory
...
Naming the association in the model makes the relationship easier
to express in the factory.
2017-02-02 12:35:29 +00:00
Andy Allan
9e591d8ccb
Add with_home_location trait for user factories.
2017-02-02 12:08:36 +00:00
Andy Allan
589e9802a9
Create a simple user factory, and convert some basic tests.
2017-02-01 17:42:05 +00:00
Andy Allan
8a6e8ae128
Convert client applications fixtures into a factory
...
Closes #1415
2017-01-26 18:03:51 +00:00
Tom Hughes
970e1a99d7
Merge remote-tracking branch 'openstreetmap/pull/1367'
2016-12-18 16:29:33 +00:00
Andy Allan
aa185bf4f8
Replace fixtures with factory for relation_tags
2016-10-31 12:30:57 +01:00
Andy Allan
97d63db369
Replace fixtures with factory for way_tags
2016-10-31 11:49:51 +01:00
Andy Allan
3026af170a
Replace fixtures with factory for node_tags
2016-10-30 18:28:01 +01:00
Andy Allan
aba28ec9e0
Replace fixtures with a factory for old_relation_tags
2016-10-30 16:32:11 +01:00
Andy Allan
e308da8daf
Convert fixtures to factory for old_way_tags
2016-10-30 16:15:23 +01:00
Andy Allan
acb7f44069
Replace fixtures with a factory for old_node_tags
...
Also includes a slight simplification of the old_node_tags tests.
2016-10-30 15:36:33 +01:00
Andy Allan
596494a590
Replace changeset_tags fixtures with a factory.
2016-10-30 12:45:02 +01:00
Andy Allan
15689af6bf
Replace trace-related fixtures with factories.
...
The mocking and stubbing in the controller tests is
unfortunate, but the models interact directly with the filesystem
using the trace id so that's hard to control any other way.
2016-10-29 16:23:04 +02:00
Tom Hughes
2df3605142
Merge remote-tracking branch 'openstreetmap/pull/1339'
2016-10-26 15:54:42 +01:00
Tom Hughes
8920a56133
Merge remote-tracking branch 'openstreetmap/pull/1338'
2016-10-26 15:48:56 +01:00
Tom Hughes
3371ca37f1
Merge remote-tracking branch 'openstreetmap/pull/1337'
2016-10-26 15:41:30 +01:00
Andy Allan
c365e2b28a
Convert the languages fixtures to a factory
...
For some tests, the existance of an 'en' language is assumed by
the database structure (not null default 'en'::character varying) so
this can be created in a setup block.
2016-10-26 13:14:52 +01:00
Andy Allan
a280f72bee
Replace messages fixtures with a factory.
2016-10-26 11:41:18 +01:00
Andy Allan
72ae20ea3c
Replace user_preferences fixture with a factory.
2016-10-26 10:07:49 +01:00
Andy Allan
162f04d789
Convert ACL fixture to a factory, and add some tests
...
The fixture was unused, so I took the opportunity to put in a couple
of basic model tests.
2016-10-26 09:15:56 +01:00
Andy Allan
23c3168c55
Replace user_blocks fixture with a factory.
...
Traits are used here to make the tests easier to read, and the
different traits can be combined where necessary.
2016-10-19 10:57:40 +01:00
Andy Allan
a91e50d308
Replace changeset_comments fixtures with a factory.
...
There's little point in testing ChangesetComment.count so I've removed that
test.
2016-10-12 15:44:27 +01:00