Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
3a884228
Commit
3a884228
authored
May 20, 2019
by
Thong Kuah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address ConstGetInheritFalse violations
There should be no cases where we need to inherit=true.
parent
b07eeb8c
Changes
37
Hide whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
50 additions
and
48 deletions
+50
-48
app/models/clusters/concerns/application_version.rb
app/models/clusters/concerns/application_version.rb
+2
-2
app/models/concerns/prometheus_adapter.rb
app/models/concerns/prometheus_adapter.rb
+1
-1
app/models/note.rb
app/models/note.rb
+1
-1
app/models/upload.rb
app/models/upload.rb
+1
-1
config/initializers/fog_core_patch.rb
config/initializers/fog_core_patch.rb
+2
-0
config/initializers/zz_metrics.rb
config/initializers/zz_metrics.rb
+2
-2
config/settings.rb
config/settings.rb
+3
-3
lib/api/notes.rb
lib/api/notes.rb
+1
-1
lib/api/todos.rb
lib/api/todos.rb
+1
-1
lib/banzai/filter.rb
lib/banzai/filter.rb
+1
-1
lib/banzai/pipeline.rb
lib/banzai/pipeline.rb
+1
-1
lib/banzai/reference_parser.rb
lib/banzai/reference_parser.rb
+1
-1
lib/bitbucket/page.rb
lib/bitbucket/page.rb
+1
-1
lib/bitbucket_server/page.rb
lib/bitbucket_server/page.rb
+1
-1
lib/gitlab/background_migration.rb
lib/gitlab/background_migration.rb
+1
-1
lib/gitlab/cache/request_cache.rb
lib/gitlab/cache/request_cache.rb
+1
-1
lib/gitlab/ci/build/policy.rb
lib/gitlab/ci/build/policy.rb
+1
-1
lib/gitlab/ci/status/factory.rb
lib/gitlab/ci/status/factory.rb
+1
-1
lib/gitlab/config/entry/simplifiable.rb
lib/gitlab/config/entry/simplifiable.rb
+1
-1
lib/gitlab/cycle_analytics/event_fetcher.rb
lib/gitlab/cycle_analytics/event_fetcher.rb
+1
-1
lib/gitlab/cycle_analytics/stage.rb
lib/gitlab/cycle_analytics/stage.rb
+1
-1
lib/gitlab/downtime_check.rb
lib/gitlab/downtime_check.rb
+2
-2
lib/gitlab/gitaly_client.rb
lib/gitlab/gitaly_client.rb
+1
-1
lib/gitlab/gitaly_client/attributes_bag.rb
lib/gitlab/gitaly_client/attributes_bag.rb
+2
-2
lib/gitlab/patch/prependable.rb
lib/gitlab/patch/prependable.rb
+2
-2
qa/bin/qa
qa/bin/qa
+1
-1
qa/qa/page/validator.rb
qa/qa/page/validator.rb
+1
-1
qa/qa/runtime/browser.rb
qa/qa/runtime/browser.rb
+1
-1
qa/qa/runtime/release.rb
qa/qa/runtime/release.rb
+1
-1
spec/factories/uploads.rb
spec/factories/uploads.rb
+1
-1
spec/lib/gitlab/ci/status/external/factory_spec.rb
spec/lib/gitlab/ci/status/external/factory_spec.rb
+1
-1
spec/lib/gitlab/ci/status/factory_spec.rb
spec/lib/gitlab/ci/status/factory_spec.rb
+1
-1
spec/lib/gitlab/ci/status/pipeline/factory_spec.rb
spec/lib/gitlab/ci/status/pipeline/factory_spec.rb
+1
-1
spec/lib/gitlab/ci/status/stage/factory_spec.rb
spec/lib/gitlab/ci/status/stage/factory_spec.rb
+1
-1
spec/lib/gitlab/patch/prependable_spec.rb
spec/lib/gitlab/patch/prependable_spec.rb
+5
-5
spec/support/shared_examples/models/cluster_application_status_shared_examples.rb
...ples/models/cluster_application_status_shared_examples.rb
+2
-2
spec/support/shared_examples/models/cluster_application_version_shared_examples.rb
...les/models/cluster_application_version_shared_examples.rb
+1
-1
No files found.
app/models/clusters/concerns/application_version.rb
View file @
3a884228
...
...
@@ -8,13 +8,13 @@ module Clusters
included
do
state_machine
:status
do
before_transition
any
=>
[
:installed
,
:updated
]
do
|
application
|
application
.
version
=
application
.
class
.
const_get
(
:VERSION
)
application
.
version
=
application
.
class
.
const_get
(
:VERSION
,
false
)
end
end
end
def
update_available?
version
!=
self
.
class
.
const_get
(
:VERSION
)
version
!=
self
.
class
.
const_get
(
:VERSION
,
false
)
end
end
end
...
...
app/models/concerns/prometheus_adapter.rb
View file @
3a884228
...
...
@@ -44,7 +44,7 @@ module PrometheusAdapter
end
def
query_klass_for
(
query_name
)
Gitlab
::
Prometheus
::
Queries
.
const_get
(
"
#{
query_name
.
to_s
.
classify
}
Query"
)
Gitlab
::
Prometheus
::
Queries
.
const_get
(
"
#{
query_name
.
to_s
.
classify
}
Query"
,
false
)
end
def
build_query_args
(
*
args
)
...
...
app/models/note.rb
View file @
3a884228
...
...
@@ -24,7 +24,7 @@ class Note < ApplicationRecord
class
<<
self
def
values
constants
.
map
{
|
const
|
self
.
const_get
(
const
)}
constants
.
map
{
|
const
|
self
.
const_get
(
const
,
false
)}
end
def
value?
(
val
)
...
...
app/models/upload.rb
View file @
3a884228
...
...
@@ -138,7 +138,7 @@ class Upload < ApplicationRecord
end
def
uploader_class
Object
.
const_get
(
uploader
)
Object
.
const_get
(
uploader
,
false
)
end
def
identifier
...
...
config/initializers/fog_core_patch.rb
View file @
3a884228
...
...
@@ -34,6 +34,7 @@ module Fog
# Gems that have not yet updated with the new fog-core namespace
LEGACY_FOG_PROVIDERS
=
%w(google rackspace aliyun)
.
freeze
# rubocop:disable Cop/ConstGetInheritFalse
def
service_provider_constant
(
service_name
,
provider_name
)
args
=
service_provider_search_args
(
service_name
,
provider_name
)
Fog
.
const_get
(
args
.
first
).
const_get
(
*
const_get_args
(
args
.
second
))
...
...
@@ -48,5 +49,6 @@ module Fog
[
provider_name
,
service_name
]
end
end
# rubocop:enable Cop/ConstGetInheritFalse
end
end
config/initializers/zz_metrics.rb
View file @
3a884228
...
...
@@ -13,7 +13,7 @@ def instrument_classes(instrumentation)
instrumentation
.
instrument_methods
(
Gitlab
::
Git
)
Gitlab
::
Git
.
constants
.
each
do
|
name
|
const
=
Gitlab
::
Git
.
const_get
(
name
)
const
=
Gitlab
::
Git
.
const_get
(
name
,
false
)
next
unless
const
.
is_a?
(
Module
)
...
...
@@ -75,7 +75,7 @@ def instrument_classes(instrumentation)
instrumentation
.
instrument_instance_methods
(
Rouge
::
Formatters
::
HTMLGitlab
)
[
:XML
,
:HTML
].
each
do
|
namespace
|
namespace_mod
=
Nokogiri
.
const_get
(
namespace
)
namespace_mod
=
Nokogiri
.
const_get
(
namespace
,
false
)
instrumentation
.
instrument_methods
(
namespace_mod
)
instrumentation
.
instrument_methods
(
namespace_mod
::
Document
)
...
...
config/settings.rb
View file @
3a884228
...
...
@@ -104,10 +104,10 @@ class Settings < Settingslogic
# check that `current` (string or integer) is a contant in `modul`.
def
verify_constant
(
modul
,
current
,
default
)
constant
=
modul
.
constants
.
find
{
|
name
|
modul
.
const_get
(
name
)
==
current
}
value
=
constant
.
nil?
?
default
:
modul
.
const_get
(
constant
)
constant
=
modul
.
constants
.
find
{
|
name
|
modul
.
const_get
(
name
,
false
)
==
current
}
value
=
constant
.
nil?
?
default
:
modul
.
const_get
(
constant
,
false
)
if
current
.
is_a?
String
value
=
modul
.
const_get
(
current
.
upcase
)
rescue
default
value
=
modul
.
const_get
(
current
.
upcase
,
false
)
rescue
default
end
value
...
...
lib/api/notes.rb
View file @
3a884228
...
...
@@ -80,7 +80,7 @@ module API
note
=
create_note
(
noteable
,
opts
)
if
note
.
valid?
present
note
,
with:
Entities
.
const_get
(
note
.
class
.
name
)
present
note
,
with:
Entities
.
const_get
(
note
.
class
.
name
,
false
)
else
bad_request!
(
"Note
#{
note
.
errors
.
messages
}
"
)
end
...
...
lib/api/todos.rb
View file @
3a884228
...
...
@@ -49,7 +49,7 @@ module API
resource
:todos
do
helpers
do
def
issuable_and_awardable?
(
type
)
obj_type
=
Object
.
const_get
(
type
)
obj_type
=
Object
.
const_get
(
type
,
false
)
(
obj_type
<
Issuable
)
&&
(
obj_type
<
Awardable
)
rescue
NameError
...
...
lib/banzai/filter.rb
View file @
3a884228
...
...
@@ -3,7 +3,7 @@
module
Banzai
module
Filter
def
self
.
[]
(
name
)
const_get
(
"
#{
name
.
to_s
.
camelize
}
Filter"
)
const_get
(
"
#{
name
.
to_s
.
camelize
}
Filter"
,
false
)
end
end
end
lib/banzai/pipeline.rb
View file @
3a884228
...
...
@@ -4,7 +4,7 @@ module Banzai
module
Pipeline
def
self
.
[]
(
name
)
name
||=
:full
const_get
(
"
#{
name
.
to_s
.
camelize
}
Pipeline"
)
const_get
(
"
#{
name
.
to_s
.
camelize
}
Pipeline"
,
false
)
end
end
end
lib/banzai/reference_parser.rb
View file @
3a884228
...
...
@@ -10,7 +10,7 @@ module Banzai
#
# This would return the `Banzai::ReferenceParser::IssueParser` class.
def
self
.
[]
(
name
)
const_get
(
"
#{
name
.
to_s
.
camelize
}
Parser"
)
const_get
(
"
#{
name
.
to_s
.
camelize
}
Parser"
,
false
)
end
end
end
lib/bitbucket/page.rb
View file @
3a884228
...
...
@@ -30,7 +30,7 @@ module Bitbucket
end
def
representation_class
(
type
)
Bitbucket
::
Representation
.
const_get
(
type
.
to_s
.
camelize
)
Bitbucket
::
Representation
.
const_get
(
type
.
to_s
.
camelize
,
false
)
end
end
end
lib/bitbucket_server/page.rb
View file @
3a884228
...
...
@@ -30,7 +30,7 @@ module BitbucketServer
end
def
representation_class
(
type
)
BitbucketServer
::
Representation
.
const_get
(
type
.
to_s
.
camelize
)
BitbucketServer
::
Representation
.
const_get
(
type
.
to_s
.
camelize
,
false
)
end
end
end
lib/gitlab/background_migration.rb
View file @
3a884228
...
...
@@ -78,7 +78,7 @@ module Gitlab
end
def
self
.
migration_class_for
(
class_name
)
const_get
(
class_name
)
const_get
(
class_name
,
false
)
end
def
self
.
enqueued_job?
(
queues
,
migration_class
)
...
...
lib/gitlab/cache/request_cache.rb
View file @
3a884228
...
...
@@ -23,7 +23,7 @@ module Gitlab
end
def
request_cache
(
method_name
,
&
method_key_block
)
const_get
(
:RequestCacheExtension
).
module_eval
do
const_get
(
:RequestCacheExtension
,
false
).
module_eval
do
cache_key_method_name
=
"
#{
method_name
}
_cache_key"
define_method
(
method_name
)
do
|*
args
|
...
...
lib/gitlab/ci/build/policy.rb
View file @
3a884228
...
...
@@ -6,7 +6,7 @@ module Gitlab
module
Policy
def
self
.
fabricate
(
specs
)
specifications
=
specs
.
to_h
.
map
do
|
spec
,
value
|
self
.
const_get
(
spec
.
to_s
.
camelize
).
new
(
value
)
self
.
const_get
(
spec
.
to_s
.
camelize
,
false
).
new
(
value
)
end
specifications
.
compact
...
...
lib/gitlab/ci/status/factory.rb
View file @
3a884228
...
...
@@ -20,7 +20,7 @@ module Gitlab
def
core_status
Gitlab
::
Ci
::
Status
.
const_get
(
@status
.
capitalize
)
.
const_get
(
@status
.
capitalize
,
false
)
.
new
(
@subject
,
@user
)
.
extend
(
self
.
class
.
common_helpers
)
end
...
...
lib/gitlab/config/entry/simplifiable.rb
View file @
3a884228
...
...
@@ -37,7 +37,7 @@ module Gitlab
def
self
.
entry_class
(
strategy
)
if
strategy
.
present?
self
.
const_get
(
strategy
.
name
)
self
.
const_get
(
strategy
.
name
,
false
)
else
self
::
UnknownStrategy
end
...
...
lib/gitlab/cycle_analytics/event_fetcher.rb
View file @
3a884228
...
...
@@ -4,7 +4,7 @@ module Gitlab
module
CycleAnalytics
module
EventFetcher
def
self
.
[]
(
stage_name
)
CycleAnalytics
.
const_get
(
"
#{
stage_name
.
to_s
.
camelize
}
EventFetcher"
)
CycleAnalytics
.
const_get
(
"
#{
stage_name
.
to_s
.
camelize
}
EventFetcher"
,
false
)
end
end
end
...
...
lib/gitlab/cycle_analytics/stage.rb
View file @
3a884228
...
...
@@ -4,7 +4,7 @@ module Gitlab
module
CycleAnalytics
module
Stage
def
self
.
[]
(
stage_name
)
CycleAnalytics
.
const_get
(
"
#{
stage_name
.
to_s
.
camelize
}
Stage"
)
CycleAnalytics
.
const_get
(
"
#{
stage_name
.
to_s
.
camelize
}
Stage"
,
false
)
end
end
end
...
...
lib/gitlab/downtime_check.rb
View file @
3a884228
...
...
@@ -58,13 +58,13 @@ module Gitlab
# Returns true if the given migration can be performed without downtime.
def
online?
(
migration
)
migration
.
const_get
(
DOWNTIME_CONST
)
==
false
migration
.
const_get
(
DOWNTIME_CONST
,
false
)
==
false
end
# Returns the downtime reason, or nil if none was defined.
def
downtime_reason
(
migration
)
if
migration
.
const_defined?
(
DOWNTIME_REASON_CONST
)
migration
.
const_get
(
DOWNTIME_REASON_CONST
)
migration
.
const_get
(
DOWNTIME_REASON_CONST
,
false
)
else
nil
end
...
...
lib/gitlab/gitaly_client.rb
View file @
3a884228
...
...
@@ -86,7 +86,7 @@ module Gitlab
if
name
==
:health_check
Grpc
::
Health
::
V1
::
Health
::
Stub
else
Gitaly
.
const_get
(
name
.
to_s
.
camelcase
.
to_sym
).
const_get
(
:Stub
)
Gitaly
.
const_get
(
name
.
to_s
.
camelcase
.
to_sym
,
false
).
const_get
(
:Stub
,
false
)
end
end
...
...
lib/gitlab/gitaly_client/attributes_bag.rb
View file @
3a884228
...
...
@@ -8,7 +8,7 @@ module Gitlab
extend
ActiveSupport
::
Concern
included
do
attr_accessor
(
*
const_get
(
:ATTRS
))
attr_accessor
(
*
const_get
(
:ATTRS
,
false
))
end
def
initialize
(
params
)
...
...
@@ -26,7 +26,7 @@ module Gitlab
end
def
attributes
self
.
class
.
const_get
(
:ATTRS
)
self
.
class
.
const_get
(
:ATTRS
,
false
)
end
end
end
...
...
lib/gitlab/patch/prependable.rb
View file @
3a884228
...
...
@@ -24,7 +24,7 @@ module Gitlab
super
if
const_defined?
(
:ClassMethods
)
klass_methods
=
const_get
(
:ClassMethods
)
klass_methods
=
const_get
(
:ClassMethods
,
false
)
base
.
singleton_class
.
prepend
klass_methods
base
.
instance_variable_set
(
:@_prepended_class_methods
,
klass_methods
)
end
...
...
@@ -40,7 +40,7 @@ module Gitlab
super
if
instance_variable_defined?
(
:@_prepended_class_methods
)
const_get
(
:ClassMethods
).
prepend
@_prepended_class_methods
const_get
(
:ClassMethods
,
false
).
prepend
@_prepended_class_methods
end
end
...
...
qa/bin/qa
View file @
3a884228
...
...
@@ -3,5 +3,5 @@
require_relative
'../qa'
QA
::
Scenario
.
const_get
(
ARGV
.
shift
)
.
const_get
(
ARGV
.
shift
,
false
)
.
launch!
(
ARGV
)
qa/qa/page/validator.rb
View file @
3a884228
...
...
@@ -17,7 +17,7 @@ module QA
def
constants
@consts
||=
@module
.
constants
.
map
do
|
const
|
@module
.
const_get
(
const
)
@module
.
const_get
(
const
,
false
)
end
end
...
...
qa/qa/runtime/browser.rb
View file @
3a884228
...
...
@@ -65,7 +65,7 @@ module QA
# QA::Runtime::Env.browser.capitalize will work for every driver type except PhantomJS.
# We will have no use to use PhantomJS so this shouldn't be a problem.
options
=
Selenium
::
WebDriver
.
const_get
(
QA
::
Runtime
::
Env
.
browser
.
capitalize
)
::
Options
.
new
options
=
Selenium
::
WebDriver
.
const_get
(
QA
::
Runtime
::
Env
.
browser
.
capitalize
,
false
)
::
Options
.
new
if
QA
::
Runtime
::
Env
.
browser
==
:chrome
options
.
add_argument
(
"window-size=1480,2200"
)
...
...
qa/qa/runtime/release.rb
View file @
3a884228
...
...
@@ -19,7 +19,7 @@ module QA
end
def
strategy
QA
.
const_get
(
"QA::
#{
version
}
::Strategy"
)
QA
.
const_get
(
"QA::
#{
version
}
::Strategy"
,
false
)
end
def
self
.
method_missing
(
name
,
*
args
)
...
...
spec/factories/uploads.rb
View file @
3a884228
...
...
@@ -15,7 +15,7 @@ FactoryBot.define do
end
path
do
uploader_instance
=
Object
.
const_get
(
uploader
.
to_s
).
new
(
model
,
mount_point
)
uploader_instance
=
Object
.
const_get
(
uploader
.
to_s
,
false
).
new
(
model
,
mount_point
)
File
.
join
(
uploader_instance
.
store_dir
,
filename
)
end
...
...
spec/lib/gitlab/ci/status/external/factory_spec.rb
View file @
3a884228
...
...
@@ -22,7 +22,7 @@ describe Gitlab::Ci::Status::External::Factory do
end
let
(
:expected_status
)
do
Gitlab
::
Ci
::
Status
.
const_get
(
simple_status
.
capitalize
)
Gitlab
::
Ci
::
Status
.
const_get
(
simple_status
.
capitalize
,
false
)
end
it
"fabricates a core status
#{
simple_status
}
"
do
...
...
spec/lib/gitlab/ci/status/factory_spec.rb
View file @
3a884228
...
...
@@ -13,7 +13,7 @@ describe Gitlab::Ci::Status::Factory do
let
(
:resource
)
{
double
(
'resource'
,
status:
simple_status
)
}
let
(
:expected_status
)
do
Gitlab
::
Ci
::
Status
.
const_get
(
simple_status
.
capitalize
)
Gitlab
::
Ci
::
Status
.
const_get
(
simple_status
.
capitalize
,
false
)
end
it
"fabricates a core status
#{
simple_status
}
"
do
...
...
spec/lib/gitlab/ci/status/pipeline/factory_spec.rb
View file @
3a884228
...
...
@@ -18,7 +18,7 @@ describe Gitlab::Ci::Status::Pipeline::Factory do
let
(
:pipeline
)
{
create
(
:ci_pipeline
,
status:
simple_status
)
}
let
(
:expected_status
)
do
Gitlab
::
Ci
::
Status
.
const_get
(
simple_status
.
capitalize
)
Gitlab
::
Ci
::
Status
.
const_get
(
simple_status
.
capitalize
,
false
)
end
it
"matches correct core status for
#{
simple_status
}
"
do
...
...
spec/lib/gitlab/ci/status/stage/factory_spec.rb
View file @
3a884228
...
...
@@ -34,7 +34,7 @@ describe Gitlab::Ci::Status::Stage::Factory do
it
"fabricates a core status
#{
core_status
}
"
do
expect
(
status
).
to
be_a
(
Gitlab
::
Ci
::
Status
.
const_get
(
core_status
.
capitalize
))
Gitlab
::
Ci
::
Status
.
const_get
(
core_status
.
capitalize
,
false
))
end
it
'extends core status with common stage methods'
do
...
...
spec/lib/gitlab/patch/prependable_spec.rb
View file @
3a884228
...
...
@@ -72,8 +72,8 @@ describe Gitlab::Patch::Prependable do
expect
(
subject
.
ancestors
.
take
(
3
)).
to
eq
([
subject
,
ee
,
ce
])
expect
(
subject
.
singleton_class
.
ancestors
.
take
(
3
))
.
to
eq
([
subject
.
singleton_class
,
ee
.
const_get
(
:ClassMethods
),
ce
.
const_get
(
:ClassMethods
)])
ee
.
const_get
(
:ClassMethods
,
false
),
ce
.
const_get
(
:ClassMethods
,
false
)])
end
it
'prepends only once even if called twice'
do
...
...
@@ -115,8 +115,8 @@ describe Gitlab::Patch::Prependable do
it
'has the expected ancestors'
do
expect
(
subject
.
ancestors
.
take
(
3
)).
to
eq
([
ee
,
ce
,
subject
])
expect
(
subject
.
singleton_class
.
ancestors
.
take
(
3
))
.
to
eq
([
ee
.
const_get
(
:ClassMethods
),
ce
.
const_get
(
:ClassMethods
),
.
to
eq
([
ee
.
const_get
(
:ClassMethods
,
false
),
ce
.
const_get
(
:ClassMethods
,
false
),
subject
.
singleton_class
])
end
...
...
@@ -152,7 +152,7 @@ describe Gitlab::Patch::Prependable do
it
'has the expected ancestors'
do
expect
(
subject
.
ancestors
.
take
(
2
)).
to
eq
([
ee
,
subject
])
expect
(
subject
.
singleton_class
.
ancestors
.
take
(
2
))
.
to
eq
([
ee
.
const_get
(
:ClassMethods
),
.
to
eq
([
ee
.
const_get
(
:ClassMethods
,
false
),
subject
.
singleton_class
])
end
...
...
spec/support/shared_examples/models/cluster_application_status_shared_examples.rb
View file @
3a884228
...
...
@@ -75,7 +75,7 @@ shared_examples 'cluster application status specs' do |application_name|
subject
.
reload
expect
(
subject
.
version
).
to
eq
(
subject
.
class
.
const_get
(
:VERSION
))
expect
(
subject
.
version
).
to
eq
(
subject
.
class
.
const_get
(
:VERSION
,
false
))
end
context
'application is updating'
do
...
...
@@ -104,7 +104,7 @@ shared_examples 'cluster application status specs' do |application_name|
subject
.
reload
expect
(
subject
.
version
).
to
eq
(
subject
.
class
.
const_get
(
:VERSION
))
expect
(
subject
.
version
).
to
eq
(
subject
.
class
.
const_get
(
:VERSION
,
false
))
end
end
end
...
...
spec/support/shared_examples/models/cluster_application_version_shared_examples.rb
View file @
3a884228
...
...
@@ -12,7 +12,7 @@ shared_examples 'cluster application version specs' do |application_name|
context
'version is the same as VERSION'
do
let
(
:application
)
{
build
(
application_name
)
}
let
(
:version
)
{
application
.
class
.
const_get
(
:VERSION
)
}
let
(
:version
)
{
application
.
class
.
const_get
(
:VERSION
,
false
)
}
it
{
is_expected
.
to
be_falsey
}
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment