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.
- data/.gitignore +0 -1
- data/Gemfile +0 -0
- data/LICENSE +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/beanstalk_integration_tests.gemspec +0 -0
- data/lib/beanstalk_integration_tests.rb +0 -0
- data/lib/beanstalk_integration_tests/bury_test.rb +0 -0
- data/lib/beanstalk_integration_tests/delete_test.rb +0 -0
- data/lib/beanstalk_integration_tests/ignore_test.rb +0 -0
- data/lib/beanstalk_integration_tests/kick_job_test.rb +0 -0
- data/lib/beanstalk_integration_tests/kick_test.rb +0 -0
- data/lib/beanstalk_integration_tests/list_tube_used_test.rb +0 -0
- data/lib/beanstalk_integration_tests/list_tubes_test.rb +0 -0
- data/lib/beanstalk_integration_tests/list_tubes_watched_test.rb +0 -0
- data/lib/beanstalk_integration_tests/pause_tube_test.rb +0 -0
- data/lib/beanstalk_integration_tests/peek_test.rb +0 -0
- data/lib/beanstalk_integration_tests/put_test.rb +0 -0
- data/lib/beanstalk_integration_tests/quit_test.rb +0 -0
- data/lib/beanstalk_integration_tests/release_test.rb +0 -0
- data/lib/beanstalk_integration_tests/reserve_test.rb +0 -0
- data/lib/beanstalk_integration_tests/stats_job_test.rb +0 -0
- data/lib/beanstalk_integration_tests/stats_test.rb +0 -0
- data/lib/beanstalk_integration_tests/stats_tube_test.rb +0 -0
- data/lib/beanstalk_integration_tests/test_helper.rb +1 -0
- data/lib/beanstalk_integration_tests/tests.rb +0 -0
- data/lib/beanstalk_integration_tests/touch_test.rb +0 -0
- data/lib/beanstalk_integration_tests/use_test.rb +5 -3
- data/lib/beanstalk_integration_tests/version.rb +1 -1
- data/lib/beanstalk_integration_tests/watch_test.rb +5 -3
- metadata +2 -2
data/.gitignore
CHANGED
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
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
|
-
|
64
|
-
|
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
|
@@ -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
|
-
|
55
|
-
|
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.
|
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
|
+
date: 2013-11-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|