diff options
| author | Josh Cooper <josh@puppetlabs.com> | 2011-04-21 14:26:29 -0700 |
|---|---|---|
| committer | Josh Cooper <josh@puppetlabs.com> | 2011-04-21 14:26:29 -0700 |
| commit | fc66e98b84b9a16728af054485883334a5887cca (patch) | |
| tree | 93565136d5ef2b4156fdd64476792e441bcfbb4e /test/lib | |
| parent | 06b8e7608eb8526396728020cd31f5c8052e21a3 (diff) | |
| parent | e396d8042c83ab0f02a4ad159f47db0003959393 (diff) | |
Merge branch '2.7.next' into next
Diffstat (limited to 'test/lib')
| -rw-r--r-- | test/lib/puppettest/railstesting.rb | 34 |
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 |
