summaryrefslogtreecommitdiffstats
path: root/test/network/client/networkclient.rb
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-02-08 02:22:57 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-02-08 02:22:57 +0000
commita216df2bcb304ad379e152f2f59ef7d942f54f3b (patch)
treeeef3289c588cf44373fe959619d732c5a05ab7b5 /test/network/client/networkclient.rb
parent7e07e3dc843798bdbc7a03428ca054adaff2fb72 (diff)
Okay, last file moves for the night. The test code has been moved to match the lib directory, and I have moved a couple of things into network/ instead of network/server, since they did not belong as much.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2180 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/network/client/networkclient.rb')
-rwxr-xr-xtest/network/client/networkclient.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/network/client/networkclient.rb b/test/network/client/networkclient.rb
new file mode 100755
index 000000000..957a1ceda
--- /dev/null
+++ b/test/network/client/networkclient.rb
@@ -0,0 +1,18 @@
+#!/usr/bin/env ruby
+
+$:.unshift("../../lib") if __FILE__ =~ /\.rb$/
+
+require 'puppettest'
+require 'puppet/network/client'
+
+class TestClient < Test::Unit::TestCase
+ def test_set_backtrace
+ error = Puppet::Network::NetworkClientError.new("An error")
+ assert_nothing_raised do
+ error.set_backtrace ["caller"]
+ end
+ end
+end
+
+# $Id$
+