diff options
author | Markus Roberts <Markus@reality.com> | 2010-07-09 18:07:15 -0700 |
---|---|---|
committer | Markus Roberts <Markus@reality.com> | 2010-07-09 18:07:15 -0700 |
commit | 543225970225de5697734bfaf0a6eee996802c04 (patch) | |
tree | ecc6f639c43cf1812e64f9c6ce7eacc0922b57ff /test/network/server/webrick.rb | |
parent | 8f15707251cdb58d53e82c4bbd332a38c2d31b4c (diff) | |
download | puppet-543225970225de5697734bfaf0a6eee996802c04.tar.gz puppet-543225970225de5697734bfaf0a6eee996802c04.tar.xz puppet-543225970225de5697734bfaf0a6eee996802c04.zip |
Code smell: Avoid needless decorations
* Replaced 704 occurances of (.*)\b([a-z_]+)\(\) with \1\2
3 Examples:
The code:
ctx = OpenSSL::SSL::SSLContext.new()
becomes:
ctx = OpenSSL::SSL::SSLContext.new
The code:
skip()
becomes:
skip
The code:
path = tempfile()
becomes:
path = tempfile
* Replaced 31 occurances of ^( *)end *#.* with \1end
3 Examples:
The code:
becomes:
The code:
end # Dir.foreach
becomes:
end
The code:
end # def
becomes:
end
Diffstat (limited to 'test/network/server/webrick.rb')
-rwxr-xr-x | test/network/server/webrick.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/network/server/webrick.rb b/test/network/server/webrick.rb index 7fd362b39..cdc682043 100755 --- a/test/network/server/webrick.rb +++ b/test/network/server/webrick.rb @@ -75,7 +75,7 @@ class TestWebrickServer < Test::Unit::TestCase def mk_status_client client = nil - assert_nothing_raised() { + assert_nothing_raised { client = Puppet::Network::Client.status.new( @@ -90,7 +90,7 @@ class TestWebrickServer < Test::Unit::TestCase def mk_status_server server = nil Puppet[:certdnsnames] = "localhost" - assert_nothing_raised() { + assert_nothing_raised { server = Puppet::Network::HTTPServer::WEBrick.new( @@ -106,7 +106,7 @@ class TestWebrickServer < Test::Unit::TestCase pid = fork { Puppet.run_mode.stubs(:master?).returns true - assert_nothing_raised() { + assert_nothing_raised { trap(:INT) { server.shutdown } server.start } |