Upgrades and fixes, maintenance
This commit is contained in:
@@ -17,6 +17,7 @@ describe Supplier do
|
||||
end
|
||||
|
||||
it 'cleans counter values if orders are no longer available' do
|
||||
old_connection = Qwaiter::Counter.connection
|
||||
# this spec should run on the couchbase database
|
||||
Qwaiter::Counter.connection = $cb
|
||||
supplier = create :supplier
|
||||
@@ -24,6 +25,7 @@ describe Supplier do
|
||||
supplier.orders_placed_count.should == 9
|
||||
Supplier.reset_counters!
|
||||
supplier.orders_placed_count.should == 0
|
||||
Qwaiter::Counter.connection = old_connection
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user