gitlab-org--gitlab-foss/spec
blackst0ne 0319da686d [Rails5] Fix spec/models/notification_setting_spec.rb
In Rails 5 assigning a value which is not explicitly `true` or `false` to a boolean column transforms it to `true`.
In Rails 4 it transforms the value to `false` with the deprecation warning:

```
DEPRECATION WARNING: You attempted to assign a value which is not explicitly `true` or `false` ("nil") to a boolean column. Currently this value casts to `false`. This will change to match Ruby's semantics, and will cast to `true` in Rails 5. If you would like to maintain the current behavior, you should explicitly handle the values you would like cast to `false`.
```

This commit fixes the spec that expects to receive Rails 4 behavior.
2018-05-01 18:30:37 +11:00
..
bin
config
controllers Merge branch 'zj-storage-path-deprecation' into 'master' 2018-04-25 13:55:21 +00:00
db/production Set ENV['IN_MEMORY_APPLICATION_SETTINGS'] to 'true in spec/db/production/settings_spec.rb 2018-04-16 10:48:53 +02:00
factories Merge branch 'zj-storage-path-deprecation' into 'master' 2018-04-25 13:55:21 +00:00
features Fix spec/features/projects/issues/user_toggles_subscription_spec.rb 2018-05-01 07:18:32 +00:00
finders Add sha filter to list pipelines 2018-04-27 11:00:52 +01:00
fixtures Cleanup after adding MR diff's commit_count (try 2) 2018-04-25 10:53:37 +02:00
helpers Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce 2018-04-26 15:19:44 +01:00
initializers Replacing gollum libs for custom gitlab ones 2018-04-13 13:17:52 +00:00
javascripts Merge branch '10-7-security_issue_42029' into 'security-10-7' 2018-04-30 15:01:01 -05:00
lib Merge branch 'security-45689-fix-archive-cache-bug' into 'security-10-7' 2018-04-30 15:00:14 -05:00
mailers Fix undefined method one? when pushing to an existing merge request 2018-04-07 23:43:40 -07:00
migrations Cleanup after adding MR diff's commit_count (try 2) 2018-04-25 10:53:37 +02:00
models [Rails5] Fix spec/models/notification_setting_spec.rb 2018-05-01 18:30:37 +11:00
policies Fix users not seeing labels from private groups when being a member of a child project 2018-04-23 13:56:38 -03:00
presenters Only show push-to-master authorized users 2018-04-24 13:59:41 +02:00
requests Define custom base controller for Doorkeeper 2018-04-30 11:40:51 +02:00
routing Add new repository archive route 2018-04-06 08:45:17 -04:00
rubocop/cop Revert the addition of goldiloader 2018-04-18 15:51:39 +02:00
serializers Resolve "Improve tooltips of collapsed sidebars" 2018-04-19 14:43:20 +00:00
services Merge branch 'security-45689-fix-archive-cache-bug' into 'security-10-7' 2018-04-30 15:00:14 -05:00
sidekiq/cron
support Ensure member notifications are sent after the member actual creation/update in the DB 2018-04-26 08:28:05 +02:00
tasks Gitlab::Shell works on shard name, not path 2018-04-25 13:36:22 +02:00
unicorn
uploaders Fix direct_upload when records with null file_store are used 2018-04-19 12:09:51 +02:00
validators
views Create autodevops settings sections 2018-04-20 12:48:04 -05:00
workers Makes namespaceless project destroy worker spec not depend on a specific migration version 2018-04-30 09:54:44 +01:00
factories_spec.rb
fast_spec_helper.rb Do not preload settings 2018-04-24 19:32:06 +02:00
rails_helper.rb
rake_helper.rb
simplecov_env.rb
spec_helper.rb Gitlab::Shell works on shard name, not path 2018-04-25 13:36:22 +02:00