summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJosh Cooper <josh@puppetlabs.com>2011-04-21 14:37:50 -0700
committerJosh Cooper <josh@puppetlabs.com>2011-04-21 14:37:50 -0700
commit01f610bb223b435dc52f491260af3ea002930102 (patch)
tree93565136d5ef2b4156fdd64476792e441bcfbb4e /test
parentac428b9557e2da251e4b51e48de844833ca0aa2a (diff)
parentfc66e98b84b9a16728af054485883334a5887cca (diff)
downloadpuppet-01f610bb223b435dc52f491260af3ea002930102.tar.gz
puppet-01f610bb223b435dc52f491260af3ea002930102.tar.xz
puppet-01f610bb223b435dc52f491260af3ea002930102.zip
Merge branch 'next'
Diffstat (limited to 'test')
-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