summaryrefslogtreecommitdiff
path: root/spec/models/concerns/cache_markdown_field_spec.rb
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-03-20 17:01:27 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-03-20 17:44:29 -0300
commit6264694d572c48f4517f8999a61cc6e0fb32ccae (patch)
treeea9c19c46eb4d37bf5e3f70328e1992bfe902805 /spec/models/concerns/cache_markdown_field_spec.rb
parent69dc893da3f19d465c12c6c183270daf38df14b3 (diff)
downloadgitlab-ce-6264694d572c48f4517f8999a61cc6e0fb32ccae.tar.gz
Rename the hidden option to whitelisted
Diffstat (limited to 'spec/models/concerns/cache_markdown_field_spec.rb')
-rw-r--r--spec/models/concerns/cache_markdown_field_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/concerns/cache_markdown_field_spec.rb b/spec/models/concerns/cache_markdown_field_spec.rb
index a2e19f7d687..7d555f15e39 100644
--- a/spec/models/concerns/cache_markdown_field_spec.rb
+++ b/spec/models/concerns/cache_markdown_field_spec.rb
@@ -23,7 +23,7 @@ describe CacheMarkdownField do
include CacheMarkdownField
cache_markdown_field :foo
cache_markdown_field :baz, pipeline: :single_line
- cache_markdown_field :zoo, hidden: false
+ cache_markdown_field :zoo, whitelisted: true
def self.add_attr(name)
self.attribute_names += [name]
@@ -85,7 +85,7 @@ describe CacheMarkdownField do
end
describe '.attributes' do
- it 'excludes cache attributes that is hidden by default' do
+ it 'excludes cache attributes that is blacklisted by default' do
expect(thing.attributes.keys.sort).to eq(%w[bar baz cached_markdown_version foo zoo zoo_html])
end
end