Permalink
Browse files

amqp messages should be serialized to json

  • Loading branch information...
lda committed Apr 27, 2012
1 parent dee3919 commit 149a392293045747a263185c0b5b4ba0698e5f11
Showing with 3 additions and 3 deletions.
  1. +1 −1 Gemfile.lock
  2. +1 −1 app/models/entries/entry.rb
  3. +1 −1 spec/models/news_entry_spec.rb
View
@@ -100,7 +100,7 @@ GEM
esp-ckeditor (0.1.0)
formtastic
rails
- esp-commons (0.3.1)
+ esp-commons (0.3.2)
active_attr
amqp
bunny
@@ -213,7 +213,7 @@ def find_more_like_this(options)
end
def message_for_queue
- { :slug => slug, :channel_ids => channels.map(&:id) }
+ { :slug => slug, :channel_ids => channels.map(&:id) }.to_json
end
private
@@ -134,7 +134,7 @@
describe 'should send message to queue <esp.news.cms>' do
let(:message) {
- { :slug => 'novost-zagolovok-novosti', :channel_ids => [1] }
+ { :slug => 'novost-zagolovok-novosti', :channel_ids => [1] }.to_json
}
before { MessageMaker.stub(:make_message) }

0 comments on commit 149a392

Please sign in to comment.