summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Robinson <matt@puppetlabs.com>2011-04-21 11:10:44 -0700
committerMatt Robinson <matt@puppetlabs.com>2011-04-21 11:35:13 -0700
commit7bd6a2f37beda001c83b666900df436a33cfccb1 (patch)
tree189befd9c66f9fb06011fb5d2468898677ac7b37
parentcdcff98b6ba4de967ecab0d6de9f1dd527e1f9c6 (diff)
downloadpuppet-7bd6a2f37beda001c83b666900df436a33cfccb1.tar.gz
puppet-7bd6a2f37beda001c83b666900df436a33cfccb1.tar.xz
puppet-7bd6a2f37beda001c83b666900df436a33cfccb1.zip
maint: Remove unused code
While looking through code related to dealing with teardown on class state variables we found some code that was never called in the unit tests. Paired-with: Josh Cooper <josh@puppetlabs.com>
-rw-r--r--test/lib/puppettest/railstesting.rb34
1 files changed, 0 insertions, 34 deletions
diff --git a/test/lib/puppettest/railstesting.rb b/test/lib/puppettest/railstesting.rb
index e05511e3b..f5666f2c4 100644
--- a/test/lib/puppettest/railstesting.rb
+++ b/test/lib/puppettest/railstesting.rb
@@ -14,39 +14,5 @@ module PuppetTest::RailsTesting
def railsinit
Puppet::Rails.init
end
-
- def railsteardown
- Puppet::Rails.teardown if Puppet[:dbadapter] != "sqlite3"
- end
-
- def railsresource(type = "file", title = "/tmp/testing", params = {})
- railsteardown
- railsinit
-
- # We need a host for resources
- #host = Puppet::Rails::Host.new(:name => Facter.value("hostname"))
-
- # Now build a resource
- resources = []
-
- resources << mkresource(
- :type => type, :title => title, :exported => true,
-
- :parameters => params)
-
- # Now collect our facts
- facts = Facter.to_hash
-
- # Now try storing our crap
- host = nil
- node = mknode(facts["hostname"])
- node.parameters = facts
- assert_nothing_raised {
- host = Puppet::Rails::Host.store(node, resources)
- }
-
- # Now save the whole thing
- host.save
- end
end