gitlab-org--gitlab-foss/spec/lib
Robert Speicher f5cb3ac14d Don't depend on Rails for Redis configuration file paths
The `Rails` object was not always available in all tasks that require
Redis access, such as `mail_room`, so the constant pointing to the
configuration path was never defined, but we still attempted to access
it in `config_file_name`, resulting in a `NameError` exception.

Further, there was no benefit to defining these paths in a constant to
begin with -- they're only accessed in one place, and it was within the
class where they were being defined. We can just provide them at
run-time instead.

Further _still_, we were calling `File.expand_path` on the absolute path
returned by `Rails.root.join`, which was rather pointless.
2017-08-15 15:08:56 -04:00
..
api/helpers Change all :empty_project to :project 2017-08-02 17:47:31 -04:00
banzai Support references to group milestones 2017-08-07 11:55:00 +01:00
bitbucket Enable the Layout/SpaceBeforeBlockBraces cop 2017-08-09 11:52:22 +02:00
ci Enable the Layout/SpaceBeforeBlockBraces cop 2017-08-09 11:52:22 +02:00
constraints Change all :empty_project to :project 2017-08-02 17:47:31 -04:00
container_registry Change all :empty_project to :project 2017-08-02 17:47:31 -04:00
gitlab Don't depend on Rails for Redis configuration file paths 2017-08-15 15:08:56 -04:00
json_web_token Enable the Layout/SpaceBeforeBlockBraces cop 2017-08-09 11:52:22 +02:00
mattermost Fix Mattermost integration 2017-08-04 12:22:10 +03:00
microsoft_teams
rspec_flaky Use a new RspecFlakyListener to detect flaky specs 2017-08-11 14:55:10 +02:00
system_check Enable the Layout/SpaceBeforeBlockBraces cop 2017-08-09 11:52:22 +02:00
additional_email_headers_interceptor_spec.rb
disable_email_interceptor_spec.rb Use described_class when possible 2017-07-27 14:31:53 +02:00
event_filter_spec.rb Migrate events into a new format 2017-08-10 17:45:44 +02:00
expand_variables_spec.rb Enable the Style/TrailingCommaInLiteral cop 2017-05-10 18:25:45 +02:00
extracts_path_spec.rb Enable the Layout/SpaceBeforeBlockBraces cop 2017-08-09 11:52:22 +02:00
feature_spec.rb Remove superfluous lib: true, type: redis, service: true, models: true, services: true, no_db: true, api: true 2017-07-27 14:31:53 +02:00
file_size_validator_spec.rb Use described_class when possible 2017-07-27 14:31:53 +02:00
gitlab_spec.rb Remove superfluous lib: true, type: redis, service: true, models: true, services: true, no_db: true, api: true 2017-07-27 14:31:53 +02:00
repository_cache_spec.rb Change all :empty_project to :project 2017-08-02 17:47:31 -04:00
system_check_spec.rb Use described_class when possible 2017-07-27 14:31:53 +02:00