rename qwaiter to mozo

This commit is contained in:
2025-09-20 17:35:58 -05:00
parent 7212d9041e
commit 0e051b1f93
99 changed files with 189 additions and 168 deletions
+29
View File
@@ -0,0 +1,29 @@
require 'spec_helper'
describe Mozo::Counter do
describe 'couchbase connection', broken: true do # couchbase not used at the moment
before do
@original_connection = Mozo::Counter.connection
Mozo::Counter.connection = $cb
end
after do
Mozo::Counter.connection = @original_connection
end
describe '.incr' do
it 'sets nonexistent keys to 1' do
expect( subject.incr 'nonexistent1' ).to eq 1
expect( subject.get 'nonexistent1' ).to eq 1
end
end
end
describe 'test connection' do
describe '.incr' do
it 'sets nonexistent keys to 1' do
expect( subject.incr 'nonexistent1' ).to eq 1
expect( subject.get 'nonexistent1' ).to eq 1
end
end
end
end