diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-18 15:13:46 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-18 15:13:46 +0300 |
commit | 9796aa22cd601f03101402540f41a05ad71828e5 (patch) | |
tree | af5934ea6156c4b31fd67bb7f5bd3a3de86b35fd /spec/lib/banzai/render_context_spec.rb | |
parent | f7e83434e312ca6cf598c6d815fe32dc200e3056 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/banzai/render_context_spec.rb')
-rw-r--r-- | spec/lib/banzai/render_context_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/lib/banzai/render_context_spec.rb b/spec/lib/banzai/render_context_spec.rb index c4b609b936e..4b5c2c5a7df 100644 --- a/spec/lib/banzai/render_context_spec.rb +++ b/spec/lib/banzai/render_context_spec.rb @@ -7,15 +7,15 @@ RSpec.describe Banzai::RenderContext do describe '#project_for_node' do it 'returns the default project if no associated project was found' do - project = instance_double('project') + project = instance_double('Project') context = described_class.new(project) expect(context.project_for_node(document)).to eq(project) end it 'returns the associated project if one was associated explicitly' do - project = instance_double('project') - obj = instance_double('object', project: project) + project = instance_double('Project') + obj = double('object', project: project) context = described_class.new context.associate_document(document, obj) @@ -24,8 +24,8 @@ RSpec.describe Banzai::RenderContext do end it 'returns the project associated with a DocumentFragment when using a node' do - project = instance_double('project') - obj = instance_double('object', project: project) + project = instance_double('Project') + obj = double('object', project: project) context = described_class.new node = document.children.first |