diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-19 15:06:00 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-19 15:06:00 +0300 |
commit | b570d73ecd31e2ca9cf8c2f1adb056edf2869477 (patch) | |
tree | 0b8aa67eab6da552d8499f1fdcf9a7495dcf1379 /spec/lib/gitlab/markdown_cache | |
parent | 34b3567c97ecc0f317adae04e10e4d7d8c8830db (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/markdown_cache')
-rw-r--r-- | spec/lib/gitlab/markdown_cache/active_record/extension_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/markdown_cache/active_record/extension_spec.rb b/spec/lib/gitlab/markdown_cache/active_record/extension_spec.rb index c5fc74afea5..6d89d22bd0e 100644 --- a/spec/lib/gitlab/markdown_cache/active_record/extension_spec.rb +++ b/spec/lib/gitlab/markdown_cache/active_record/extension_spec.rb @@ -73,11 +73,11 @@ describe Gitlab::MarkdownCache::ActiveRecord::Extension do let(:thing) { klass.new(title: markdown, title_html: html, cached_markdown_version: cache_version) } before do - thing.state = 'closed' + thing.state_id = 2 thing.save end - it { expect(thing.state).to eq('closed') } + it { expect(thing.state_id).to eq(2) } it { expect(thing.title).to eq(markdown) } it { expect(thing.title_html).to eq(html) } it { expect(thing.cached_markdown_version).to eq(cache_version) } |