mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-20 14:11:11 +00:00
Use Hash rocket syntax to maintain Ruby 2.1 compatibility in spec
This commit is contained in:
@ -5,7 +5,7 @@ describe Banzai::ObjectRenderer do
|
||||
let(:user) { project.owner }
|
||||
|
||||
def fake_object(attrs = {})
|
||||
object = double(attrs.merge("new_record?": true, "destroyed?": true))
|
||||
object = double(attrs.merge("new_record?" => true, "destroyed?" => true))
|
||||
allow(object).to receive(:markdown_cache_field_for).with(:note).and_return(:note_html)
|
||||
allow(object).to receive(:banzai_render_context).with(:note).and_return(project: nil, author: nil)
|
||||
allow(object).to receive(:update_column).with(:note_html, anything).and_return(true)
|
||||
|
Reference in New Issue
Block a user