Skip to content
Snippets Groups Projects
Commit 4695bb88 authored by Stan Hu's avatar Stan Hu
Browse files

Use Hash rocket syntax to maintain Ruby 2.1 compatibility in spec

parent 28ca8502
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment