selenium-grid 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/java/vm.rb +1 -1
- data/lib/selenium-grid/version.rb +1 -1
- data/lib/utils/netstat.rb +1 -2
- data/spec/java/vm_spec.rb +3 -3
- data/spec/utils/netstat_spec.rb +9 -2
- metadata +2 -2
data/lib/java/vm.rb
CHANGED
data/lib/utils/netstat.rb
CHANGED
data/spec/java/vm_spec.rb
CHANGED
@@ -40,8 +40,8 @@ module Java
|
|
40
40
|
end
|
41
41
|
|
42
42
|
it "is the last option" do
|
43
|
-
mock(vm).sh("java test.ClassName
|
44
|
-
vm.run "test.ClassName", {:background => true, :
|
43
|
+
mock(vm).sh("java test.ClassName -one uno &")
|
44
|
+
vm.run "test.ClassName", {:background => true, :arguments => { :one => 'uno' }}
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
@@ -54,7 +54,7 @@ module Java
|
|
54
54
|
|
55
55
|
context "when the options include :log" do
|
56
56
|
before do
|
57
|
-
mock(vm).mkdir_p("/var/log")
|
57
|
+
mock(vm).mkdir_p("/var/log", :verbose => false)
|
58
58
|
end
|
59
59
|
|
60
60
|
it "shells out to java and redirects output to the specified log file" do
|
data/spec/utils/netstat_spec.rb
CHANGED
@@ -10,9 +10,16 @@ module Utils
|
|
10
10
|
@port = 1234
|
11
11
|
end
|
12
12
|
|
13
|
+
describe "the system call" do
|
14
|
+
it "limits the results based on port and listening state" do
|
15
|
+
mock(Netstat.instance).send(:`, 'netstat -an | grep LISTEN | grep 1234')
|
16
|
+
Utils::Netstat.instance.running?(port)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
13
20
|
context "when the port is in use" do
|
14
21
|
before do
|
15
|
-
mock(Netstat.instance).
|
22
|
+
mock(Netstat.instance).send(:`, anything) { true }
|
16
23
|
end
|
17
24
|
|
18
25
|
it "returns true" do
|
@@ -22,7 +29,7 @@ module Utils
|
|
22
29
|
|
23
30
|
context "when the port is not in use" do
|
24
31
|
before do
|
25
|
-
mock(Netstat.instance).
|
32
|
+
mock(Netstat.instance).send(:`, anything) { false }
|
26
33
|
end
|
27
34
|
|
28
35
|
it "returns false" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: selenium-grid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Dy
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2008-10-
|
14
|
+
date: 2008-10-14 00:00:00 -07:00
|
15
15
|
default_executable:
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|