Skip to content

Commit

Permalink
chore:linting fixes and minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth9890 committed Oct 7, 2023
1 parent cf0dfd0 commit 325fd2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ gem "jbuilder"
# Use Redis adapter to run Action Cable in production
gem "redis"

# Ruby client for RabbitMQ [https://github.com/ruby-amqp/bunny]
gem "bunny"


# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
# gem "kredis"

Expand Down Expand Up @@ -102,6 +102,5 @@ group :test do
gem "shoulda-matchers", "~> 5.0"
gem "simplecov", require: false
gem "spring-commands-rspec"
gem "bunny-mock"

end
9 changes: 2 additions & 7 deletions spec/rabbitmq/publisher_spec.rb → spec/publisher_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# spec/services/rabbitmq_publisher_spec.rb

require 'rails_helper'
require 'bunny-mock'

Expand All @@ -8,9 +6,7 @@
let(:routing_key) { 'test_routing_key' }
let(:rabbitmq_url) { 'amqp://test:test@rabbitmq:5672/' }


it 'should publish messages to queues' do

it 'should publish messages to queues' do
channel = BunnyMock.new(rabbitmq_url).start.channel
queue = channel.queue 'queue.test'

Expand All @@ -23,6 +19,5 @@

expect(payload[:message]).to eq('Testing message')
expect(payload[:options][:priority]).to eq(5)
end

end
end

0 comments on commit 325fd2f

Please sign in to comment.