torquespec 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/torquespec/daemon.rb +22 -2
- data/lib/torquespec/version.rb +1 -1
- data/spec/hello_world_spec.rb +0 -1
- metadata +85 -68
data/lib/torquespec/daemon.rb
CHANGED
@@ -56,14 +56,34 @@ module TorqueSpec
|
|
56
56
|
# Intended to extend an RSpec::Core::ExampleGroup
|
57
57
|
module Client
|
58
58
|
|
59
|
+
def torquespec_before_alls
|
60
|
+
if respond_to?(:eval_before_alls)
|
61
|
+
eval_before_alls(new) # v 2.3
|
62
|
+
elsif respond_to?(:run_before_all_hooks)
|
63
|
+
run_before_all_hooks(new) # 2.7
|
64
|
+
else
|
65
|
+
raise "Unknown method to run before(:all) hooks"
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
def torquespec_after_alls
|
70
|
+
if respond_to?(:eval_after_alls)
|
71
|
+
eval_after_alls(new) # v 2.3
|
72
|
+
elsif respond_to?(:run_after_all_hooks)
|
73
|
+
run_after_all_hooks(new) # 2.7
|
74
|
+
else
|
75
|
+
raise "Unknown method to run after(:all) hooks"
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
59
79
|
def run(reporter)
|
60
80
|
begin
|
61
|
-
|
81
|
+
torquespec_before_alls
|
62
82
|
run_remotely(reporter)
|
63
83
|
rescue Exception => ex
|
64
84
|
fail_filtered_examples(ex, reporter)
|
65
85
|
ensure
|
66
|
-
|
86
|
+
torquespec_after_alls
|
67
87
|
end
|
68
88
|
end
|
69
89
|
|
data/lib/torquespec/version.rb
CHANGED
data/spec/hello_world_spec.rb
CHANGED
@@ -31,7 +31,6 @@ describe "war deployment" do
|
|
31
31
|
deploy File.join( File.dirname(__FILE__), "../apps/node-info.war" )
|
32
32
|
|
33
33
|
it "should greet the world" do
|
34
|
-
pending("until jboss fixes war deployment")
|
35
34
|
response = open("http://localhost:8080/node-info") {|f| f.read}
|
36
35
|
response.should include( 'JBoss-Cloud node info' )
|
37
36
|
end
|
metadata
CHANGED
@@ -1,41 +1,52 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: torquespec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
4
|
+
hash: 7
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 4
|
9
|
+
- 4
|
10
|
+
version: 0.4.4
|
6
11
|
platform: ruby
|
7
12
|
authors:
|
8
|
-
|
9
|
-
|
13
|
+
- Jim Crossley
|
14
|
+
- Bob McWhirter
|
10
15
|
autorequire:
|
11
16
|
bindir: bin
|
12
17
|
cert_chain: []
|
13
18
|
|
14
|
-
date: 2011-
|
19
|
+
date: 2011-11-07 00:00:00 -05:00
|
15
20
|
default_executable:
|
16
21
|
dependencies:
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
22
|
+
- !ruby/object:Gem::Dependency
|
23
|
+
name: rspec
|
24
|
+
prerelease: false
|
25
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
hash: 3
|
31
|
+
segments:
|
32
|
+
- 0
|
33
|
+
version: "0"
|
34
|
+
type: :runtime
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: json
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 3
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
version: "0"
|
48
|
+
type: :runtime
|
49
|
+
version_requirements: *id002
|
39
50
|
description: Write integration tests around the deployment of your app to a real JBoss app server
|
40
51
|
email: team@projectodd.org
|
41
52
|
executables: []
|
@@ -45,32 +56,32 @@ extensions: []
|
|
45
56
|
extra_rdoc_files: []
|
46
57
|
|
47
58
|
files:
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
59
|
+
- .gitignore
|
60
|
+
- Gemfile
|
61
|
+
- README.org
|
62
|
+
- Rakefile
|
63
|
+
- apps/empty/torquebox.yml
|
64
|
+
- apps/node-info.war
|
65
|
+
- apps/simple.knob
|
66
|
+
- apps/simple/config.ru
|
67
|
+
- lib/rspec/core/torquespec-extensions.rb
|
68
|
+
- lib/torque_spec/daemon.rb
|
69
|
+
- lib/torquespec.rb
|
70
|
+
- lib/torquespec/as6.rb
|
71
|
+
- lib/torquespec/as7.rb
|
72
|
+
- lib/torquespec/daemon.rb
|
73
|
+
- lib/torquespec/deployment_descriptor.rb
|
74
|
+
- lib/torquespec/server.rb
|
75
|
+
- lib/torquespec/torquespec.rb
|
76
|
+
- lib/torquespec/version.rb
|
77
|
+
- spec/empty_spec.rb
|
78
|
+
- spec/failure.rb
|
79
|
+
- spec/guard_spec.rb
|
80
|
+
- spec/hello_world_spec.rb
|
81
|
+
- spec/injection_spec.rb
|
82
|
+
- spec/nested_remote_spec.rb
|
83
|
+
- spec/remote_spec.rb
|
84
|
+
- torquespec.gemspec
|
74
85
|
has_rdoc: true
|
75
86
|
homepage: http://github.com/torquebox/torquespec
|
76
87
|
licenses: []
|
@@ -79,31 +90,37 @@ post_install_message:
|
|
79
90
|
rdoc_options: []
|
80
91
|
|
81
92
|
require_paths:
|
82
|
-
|
93
|
+
- lib
|
83
94
|
required_ruby_version: !ruby/object:Gem::Requirement
|
84
95
|
none: false
|
85
96
|
requirements:
|
86
|
-
|
87
|
-
|
88
|
-
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
hash: 3
|
100
|
+
segments:
|
101
|
+
- 0
|
102
|
+
version: "0"
|
89
103
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
104
|
none: false
|
91
105
|
requirements:
|
92
|
-
|
93
|
-
|
94
|
-
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
hash: 3
|
109
|
+
segments:
|
110
|
+
- 0
|
111
|
+
version: "0"
|
95
112
|
requirements: []
|
96
113
|
|
97
114
|
rubyforge_project: torquespec
|
98
|
-
rubygems_version: 1.
|
115
|
+
rubygems_version: 1.3.7
|
99
116
|
signing_key:
|
100
117
|
specification_version: 3
|
101
118
|
summary: Deploy TorqueBox knobs to a running JBoss instance
|
102
119
|
test_files:
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
120
|
+
- spec/empty_spec.rb
|
121
|
+
- spec/failure.rb
|
122
|
+
- spec/guard_spec.rb
|
123
|
+
- spec/hello_world_spec.rb
|
124
|
+
- spec/injection_spec.rb
|
125
|
+
- spec/nested_remote_spec.rb
|
126
|
+
- spec/remote_spec.rb
|