Skip to content

Commit

Permalink
Bump version to 2.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
urmastalimaa committed Sep 7, 2023
1 parent 47bdf62 commit 7f7a0a8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
freddy (2.7.0)
freddy (2.8.0)
bunny (~> 2.11)
concurrent-ruby (~> 1.0)
oj (~> 3.6)
Expand Down
2 changes: 1 addition & 1 deletion lib/freddy/version.rb
@@ -1,5 +1,5 @@
# frozen_string_literal: true

class Freddy
VERSION = '2.7.0'
VERSION = '2.8.0'
end
13 changes: 7 additions & 6 deletions spec/freddy/freddy_spec.rb
Expand Up @@ -9,12 +9,13 @@

before do
@bunny = Bunny.new(config)
@bunny.start()
@bunny.start
end

after { @bunny.close }

after { freddy.close }
after do
@bunny.close
freddy.close
end

def respond_to(&block)
freddy.respond_to(destination, &block)
Expand Down Expand Up @@ -84,10 +85,10 @@ def respond_to(&block)
queue = exclusive_subscribe do |_info, metadata, _payload|
@metadata = metadata
end
freddy.deliver(queue, payload, headers: {'foo' => 'bar'})
freddy.deliver(queue, payload, headers: { 'foo' => 'bar' })

wait_for { @metadata }
expect(@metadata[:headers]).to include({'foo' => 'bar'})
expect(@metadata[:headers]).to include({ 'foo' => 'bar' })
end
end

Expand Down

0 comments on commit 7f7a0a8

Please sign in to comment.