Skip to content

Commit

Permalink
Consolidate basic-qos specs
Browse files Browse the repository at this point in the history
9158ef0 introduced a new spec, but there was one already hanging
around. Extend that one and remove the extra one.
  • Loading branch information
camelpunch committed Apr 5, 2016
1 parent 35f772d commit 044edf0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 37 deletions.
10 changes: 8 additions & 2 deletions spec/higher_level_api/integration/basic_qos_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
ch = connection.create_channel
expect {
ch.prefetch(100_000)
}.to raise_error(ArgumentError)
}.to raise_error(
ArgumentError,
"prefetch count must be no greater than #{Bunny::Channel::MAX_PREFETCH_COUNT}, given: 100000"
)
end
end

Expand All @@ -45,7 +48,10 @@
ch = connection.create_channel
expect {
ch.prefetch(-2)
}.to raise_error(ArgumentError)
}.to raise_error(
ArgumentError,
"prefetch count must be a positive integer, given: -2"
)
end
end
end
35 changes: 0 additions & 35 deletions spec/lib/bunny/channel_spec.rb

This file was deleted.

0 comments on commit 044edf0

Please sign in to comment.