torquespec 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- eval_before_alls(new)
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
- eval_after_alls(new)
86
+ torquespec_after_alls
67
87
  end
68
88
  end
69
89
 
@@ -1,3 +1,3 @@
1
1
  module TorqueSpec
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
@@ -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
- prerelease:
5
- version: 0.4.3
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
- - Jim Crossley
9
- - Bob McWhirter
13
+ - Jim Crossley
14
+ - Bob McWhirter
10
15
  autorequire:
11
16
  bindir: bin
12
17
  cert_chain: []
13
18
 
14
- date: 2011-10-25 00:00:00 -04:00
19
+ date: 2011-11-07 00:00:00 -05:00
15
20
  default_executable:
16
21
  dependencies:
17
- - !ruby/object:Gem::Dependency
18
- name: rspec
19
- prerelease: false
20
- requirement: &id001 !ruby/object:Gem::Requirement
21
- none: false
22
- requirements:
23
- - - ">="
24
- - !ruby/object:Gem::Version
25
- version: "0"
26
- type: :runtime
27
- version_requirements: *id001
28
- - !ruby/object:Gem::Dependency
29
- name: json
30
- prerelease: false
31
- requirement: &id002 !ruby/object:Gem::Requirement
32
- none: false
33
- requirements:
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: "0"
37
- type: :runtime
38
- version_requirements: *id002
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
- - .gitignore
49
- - Gemfile
50
- - README.org
51
- - Rakefile
52
- - apps/empty/torquebox.yml
53
- - apps/node-info.war
54
- - apps/simple.knob
55
- - apps/simple/config.ru
56
- - lib/rspec/core/torquespec-extensions.rb
57
- - lib/torque_spec/daemon.rb
58
- - lib/torquespec.rb
59
- - lib/torquespec/as6.rb
60
- - lib/torquespec/as7.rb
61
- - lib/torquespec/daemon.rb
62
- - lib/torquespec/deployment_descriptor.rb
63
- - lib/torquespec/server.rb
64
- - lib/torquespec/torquespec.rb
65
- - lib/torquespec/version.rb
66
- - spec/empty_spec.rb
67
- - spec/failure.rb
68
- - spec/guard_spec.rb
69
- - spec/hello_world_spec.rb
70
- - spec/injection_spec.rb
71
- - spec/nested_remote_spec.rb
72
- - spec/remote_spec.rb
73
- - torquespec.gemspec
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
- - lib
93
+ - lib
83
94
  required_ruby_version: !ruby/object:Gem::Requirement
84
95
  none: false
85
96
  requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- version: "0"
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
- - !ruby/object:Gem::Version
94
- version: "0"
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.5.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
- - spec/empty_spec.rb
104
- - spec/failure.rb
105
- - spec/guard_spec.rb
106
- - spec/hello_world_spec.rb
107
- - spec/injection_spec.rb
108
- - spec/nested_remote_spec.rb
109
- - spec/remote_spec.rb
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