Anton Khorev
11a7bf7e0e
Remove duration controls for blocks that can only be revoked by editing
2024-08-22 14:01:54 +03:00
Anton Khorev
cff4c63713
Add deactivates_at date to user blocks
...
Block deactivation dates that take needs_view-block views into account were derived using updated_at. This was possible because inactive blocks couldn't be edited and their updated_at date wouldn't change. With editing of inactive blocks enabled deactivation date needs to be saved explicitly.
2024-08-19 14:33:20 +03:00
Anton Khorev
3a05667d45
Make factory-created revoked blocks inactive
2024-03-21 06:11:24 +03:00
Andy Allan
cb4f99fef2
Use implicit style for associations with factory overrides
...
This matches our usage of implicit style for associations generally,
e.g. `user`.
2023-09-06 10:20:23 +01:00
Tom Hughes
b5f06e06c1
Fix rubocop Rails/TimeZone warnings
2022-03-01 22:55:10 +00:00
Tom Hughes
06915a77b5
Fix FactoryBot deprecation warnings
2018-08-28 19:12:01 +01:00
Tom Hughes
b2fa947502
Replace factory_girl with factory_bot
2017-10-29 19:29:30 +00:00
Andy Allan
7f957bac76
Use factories for all factory associations.
2017-04-25 16:52:29 +02:00
Andy Allan
a3618d2b5f
User factory associations for all factories.
2017-02-22 18:51:45 +00: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