spec/rspec_spec.rb in beanstalk-client-rspec-0.0.5 vs spec/rspec_spec.rb in beanstalk-client-rspec-0.0.6
- old
+ new
@@ -12,6 +12,14 @@
it 'should match queue size' do
@beanstalk.use 'oath'
@beanstalk.yput :foo => 'bar'
@beanstalk.should have_tube_size_of(1).for('oath')
end
+
+ it 'should match gt queue size' do
+ @beanstalk.use 'oath'
+ @beanstalk.yput :foo => 'bar'
+ @beanstalk.yput :foo => 'bar'
+ @beanstalk.yput :foo => 'bar'
+ @beanstalk.should have_tube_size_of_gt(2).for('oath')
+ end
end