We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1ab8ca commit f84c61fCopy full SHA for f84c61f
spec/concurrent/atomic/semaphore_spec.rb
@@ -1,7 +1,7 @@
1
shared_examples :semaphore do
2
let(:semaphore) { described_class.new(3) }
3
4
- context '#initialize' do
+ describe '#initialize' do
5
it 'raises an exception if the initial count is not an integer' do
6
expect {
7
described_class.new('foo')
@@ -102,7 +102,7 @@
102
103
it 'reduces permits below zero' do
104
semaphore.reduce_permits 1003
105
- expect(semaphore.available_permits).to eq -1000
+ expect(semaphore.available_permits).to eq(-1000)
106
end
107
108
it 'reduces permits' do
0 commit comments