summaryrefslogtreecommitdiff
path: root/spec/factories/broadcast_messages.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add frozen_string_literal to spec/factoriesfrozen_string_spec_factoriesThong Kuah2019-07-261-0/+2
| | | | | Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
* Fix DynamicAttributeDefinedStatically copSemyon Pupkov2018-09-211-6/+6
|
* Replace factory_girl_rails with factory_bot_railsrc/use-factory_bot_railsRémy Coutable2017-12-141-1/+1
| | | | | | | | | | | I've followed the [upgrade guide](https://github.com/thoughtbot/factory_bot/blob/4-9-0-stable/UPGRADE_FROM_FACTORY_GIRL.md) and ran these two commands: ``` grep -e FactoryGirl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|FactoryGirl|FactoryBot|" grep -e factory_girl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|factory_girl|factory_bot|" ``` Signed-off-by: Rémy Coutable <remy@rymai.me>
* TST: Use more accurate time windows so tests do not failjoshbabier2016-08-041-2/+2
| | | | | | | | | | | | | | | Currently, the way the 'starts_at' and 'ends_at' attributes are set, if the specs are run at one second to midnight, the broadcast message will expire in one second. I have changed it so that we are guaranteed a period of one day until expiration. I believe this is the desired behaviour and it's also consistent with the rest of the factory. This corrects the following three specs that can fail depending upon where and when they are run: ./spec/helpers/broadcast_messages_helper_spec.rb:42 ./spec/models/broadcast_message_spec.rb:26 ./spec/models/broadcast_message_spec.rb:47
* Remove the annotate gem and delete old annotationsJeroen van Baarsen2016-05-091-14/+0
| | | | | | | | | In 8278b763d96ef10c6494409b18b7eb541463af29 the default behaviour of annotation has changes, which was causing a lot of noise in diffs. We decided in #17382 that it is better to get rid of the whole annotate gem, and instead let people look at schema.rb for the columns in a table. Fixes: #17382
* Fix specsDouwe Maan2016-03-211-1/+1
|
* Move all factory definitions to their own fileRobert Speicher2016-03-041-2/+0
|
* Update BroadcastMessage modelRobert Speicher2016-01-131-0/+5
| | | | | - Adds default values for `color` and `font` attributes - Adds `active?`, `started?`, `ended?`, and 'status' methods
* Simplify BroadcastMessage factoryRobert Speicher2016-01-131-6/+7
| | | | Also make the feature tests less brittle.
* Re-annotate modelsDmitriy Zaporozhets2014-04-091-3/+3
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fix broadcast message factoryDmitriy Zaporozhets2013-12-191-2/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Customization and previewing of broadcast messagesAndrew Tomaka2013-12-181-0/+4
|
* AnnotateDmitriy Zaporozhets2013-11-131-0/+13
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Broadcast message model + migrationsDmitriy Zaporozhets2013-11-121-0/+10
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>