beanstalk_integration_tests 0.0.2 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. data/.gitignore +0 -1
  2. data/Gemfile +0 -0
  3. data/LICENSE +0 -0
  4. data/README.md +0 -0
  5. data/Rakefile +0 -0
  6. data/beanstalk_integration_tests.gemspec +0 -0
  7. data/lib/beanstalk_integration_tests.rb +0 -0
  8. data/lib/beanstalk_integration_tests/bury_test.rb +0 -0
  9. data/lib/beanstalk_integration_tests/delete_test.rb +0 -0
  10. data/lib/beanstalk_integration_tests/ignore_test.rb +0 -0
  11. data/lib/beanstalk_integration_tests/kick_job_test.rb +0 -0
  12. data/lib/beanstalk_integration_tests/kick_test.rb +0 -0
  13. data/lib/beanstalk_integration_tests/list_tube_used_test.rb +0 -0
  14. data/lib/beanstalk_integration_tests/list_tubes_test.rb +0 -0
  15. data/lib/beanstalk_integration_tests/list_tubes_watched_test.rb +0 -0
  16. data/lib/beanstalk_integration_tests/pause_tube_test.rb +0 -0
  17. data/lib/beanstalk_integration_tests/peek_test.rb +0 -0
  18. data/lib/beanstalk_integration_tests/put_test.rb +0 -0
  19. data/lib/beanstalk_integration_tests/quit_test.rb +0 -0
  20. data/lib/beanstalk_integration_tests/release_test.rb +0 -0
  21. data/lib/beanstalk_integration_tests/reserve_test.rb +0 -0
  22. data/lib/beanstalk_integration_tests/stats_job_test.rb +0 -0
  23. data/lib/beanstalk_integration_tests/stats_test.rb +0 -0
  24. data/lib/beanstalk_integration_tests/stats_tube_test.rb +0 -0
  25. data/lib/beanstalk_integration_tests/test_helper.rb +1 -0
  26. data/lib/beanstalk_integration_tests/tests.rb +0 -0
  27. data/lib/beanstalk_integration_tests/touch_test.rb +0 -0
  28. data/lib/beanstalk_integration_tests/use_test.rb +5 -3
  29. data/lib/beanstalk_integration_tests/version.rb +1 -1
  30. data/lib/beanstalk_integration_tests/watch_test.rb +5 -3
  31. metadata +2 -2
data/.gitignore CHANGED
@@ -15,4 +15,3 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
- ./beanstalk_integration_tests
data/Gemfile CHANGED
File without changes
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
File without changes
File without changes
@@ -4,6 +4,7 @@ require 'minitest/autorun'
4
4
  require 'minitest/should'
5
5
 
6
6
  require 'securerandom'
7
+ require 'timeout'
7
8
 
8
9
  require 'beaneater'
9
10
 
File without changes
@@ -58,10 +58,12 @@ class UseTest < BeanstalkIntegrationTest
58
58
  end
59
59
 
60
60
 
61
- should 'return BAD_FORMAT if line has a trailing space' do
61
+ should 'return BAD_FORMAT if line has a trailing space or extraneous args' do
62
62
  initital_cmd_use = client.transmit('stats')[:body]['cmd-use']
63
- assert_raises Beaneater::BadFormatError do
64
- client.transmit("use #{tube_name} ")
63
+ [' ', ' foo'].each do |trailer|
64
+ assert_raises Beaneater::BadFormatError do
65
+ client.transmit("use #{tube_name}#{trailer}")
66
+ end
65
67
  end
66
68
  assert_equal(initital_cmd_use, client.transmit('stats')[:body]['cmd-use'], 'Expected cmd-use to be unchanged')
67
69
  end
@@ -1,3 +1,3 @@
1
1
  module BeanstalkIntegrationTests
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.4'
3
3
  end
@@ -49,10 +49,12 @@ class WatchTest < BeanstalkIntegrationTest
49
49
  end
50
50
 
51
51
 
52
- should 'return BAD_FORMAT if line has a trailing space' do
52
+ should 'return BAD_FORMAT if line has a trailing space or extraneous arguments' do
53
53
  initital_cmd_use = client.transmit('stats')[:body]['cmd-watch']
54
- assert_raises Beaneater::BadFormatError do
55
- client.transmit("watch #{tube_name} ")
54
+ [' ', ' foo'].each do |trailer|
55
+ assert_raises Beaneater::BadFormatError do
56
+ client.transmit("watch #{tube_name}#{trailer}")
57
+ end
56
58
  end
57
59
  assert_equal(initital_cmd_use, client.transmit('stats')[:body]['cmd-watch'], 'Expected cmd-watch to be unchanged')
58
60
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beanstalk_integration_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-12 00:00:00.000000000 Z
12
+ date: 2013-11-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler