torquespec 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,14 +38,14 @@ module TorqueSpec
38
38
 
39
39
  def deploy(url)
40
40
  t0 = Time.now
41
- puts " deploying #{url}"
41
+ print "deploy #{url} "
42
+ $stdout.flush
42
43
  _deploy(url)
43
- puts " deployed #{url} in #{(Time.now - t0).to_i}s"
44
+ puts "in #{(Time.now - t0).to_i}s"
44
45
  end
45
46
 
46
47
  def undeploy(url)
47
48
  _undeploy(url)
48
- puts " removed #{url}"
49
49
  end
50
50
 
51
51
  def wait_for_ready(timeout)
@@ -85,11 +85,11 @@ module TorqueSpec
85
85
 
86
86
  def http req
87
87
  res = Net::HTTP.start('localhost', port) do |http|
88
- http.read_timeout = 180
88
+ http.read_timeout = 360
89
89
  http.request(req)
90
90
  end
91
91
  unless Net::HTTPSuccess === res
92
- STDERR.puts res.body
92
+ $stderr.puts res.body
93
93
  res.error!
94
94
  end
95
95
  res.body
@@ -1,3 +1,3 @@
1
1
  module TorqueSpec
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
@@ -36,3 +36,14 @@ describe "war deployment" do
36
36
  end
37
37
  end
38
38
 
39
+ describe "missing knob handling" do
40
+
41
+ it "should toss an error for a missing descriptor" do
42
+ server = TorqueSpec::Server.new
43
+ lambda {
44
+ server.deploy "this-file-does-not-exist.yml"
45
+ }.should raise_error
46
+ end
47
+
48
+ end
49
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: torquespec
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 6
10
- version: 0.1.6
9
+ - 7
10
+ version: 0.1.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jim Crossley
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-05-19 00:00:00 -04:00
19
+ date: 2011-05-20 00:00:00 -04:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency