From 457cf2aafb89a778821856350b0e049a3891145a Mon Sep 17 00:00:00 2001 From: Steffen van Bergerem Date: Sun, 13 Nov 2016 23:10:47 +0100 Subject: [PATCH] Fix deprecation warnings in conversations controller spec closes #7187 --- .../controllers/conversations_controller_spec.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/spec/controllers/conversations_controller_spec.rb b/spec/controllers/conversations_controller_spec.rb index f3a0249e7..d02ed22fe 100644 --- a/spec/controllers/conversations_controller_spec.rb +++ b/spec/controllers/conversations_controller_spec.rb @@ -131,7 +131,7 @@ describe ConversationsController, :type => :controller do @hash = { format: :js, conversation: {subject: "secret stuff", text: "text debug"}, - person_ids: [alice.contacts.first.person.id] + person_ids: alice.contacts.first.person.id.to_s } end @@ -170,7 +170,7 @@ describe ConversationsController, :type => :controller do @hash = { format: :js, conversation: {subject: " ", text: "text debug"}, - person_ids: [alice.contacts.first.person.id] + person_ids: alice.contacts.first.person.id.to_s } end @@ -194,7 +194,7 @@ describe ConversationsController, :type => :controller do @hash = { format: :js, conversation: {subject: "secret stuff", text: " "}, - person_ids: [alice.contacts.first.person.id] + person_ids: alice.contacts.first.person.id.to_s } end @@ -283,7 +283,7 @@ describe ConversationsController, :type => :controller do @hash = { format: :js, conversation: {subject: "secret stuff", text: "text debug"}, - person_ids: [@person1.id, @person2.id, @person3.id] + person_ids: [@person1.id, @person2.id, @person3.id].join(",") } end @@ -317,7 +317,7 @@ describe ConversationsController, :type => :controller do @hash = { format: :js, conversation: {subject: "secret stuff", text: "text debug"}, - contact_ids: [alice.contacts.first.id] + contact_ids: alice.contacts.first.id.to_s } end @@ -356,7 +356,7 @@ describe ConversationsController, :type => :controller do @hash = { format: :js, conversation: {subject: " ", text: "text debug"}, - contact_ids: [alice.contacts.first.id] + contact_ids: alice.contacts.first.id.to_s } end @@ -380,7 +380,7 @@ describe ConversationsController, :type => :controller do @hash = { format: :js, conversation: {subject: "secret stuff", text: " "}, - contact_ids: [alice.contacts.first.id] + contact_ids: alice.contacts.first.id.to_s } end @@ -466,7 +466,7 @@ describe ConversationsController, :type => :controller do @hash = { format: :js, conversation: {subject: "secret stuff", text: "text debug"}, - person_ids: [@contact1.id, @contact2.id] + person_ids: [@contact1.id, @contact2.id].join(",") } end