public
Rubygem
Description: James Turnbull's Puppet remote
Homepage: http://reductivelabs.com/trac/puppet
Clone URL: git://github.com/jamtur01/puppet.git
Search Repo:
Fixing #1438 -- mongrel and module tests now pass.

Signed-off-by: Luke Kanies <luke@madstop.com>
lak (author)
Fri Jul 18 13:30:42 -0700 2008
jamtur01 (committer)
Sat Jul 19 21:20:53 -0700 2008
commit  238b8d7f0a16eda971409d7423dc1f04cf0e2a34
tree    62d736f402b0498bdc6650914efb599b558bb99e
parent  ebb219e496682862ac98d382afe014cf1c763f2f
...
143
144
145
146
147
 
 
148
149
150
...
143
144
145
 
 
146
147
148
149
150
0
@@ -143,8 +143,8 @@ describe Puppet::Module, " when searching for manifests when no module is found"
0
 
0
     it "should look for files relative to the current directory" do
0
         cwd = Dir.getwd
0
- Dir.expects(:glob).with("#{cwd}/mymod/init.pp").returns(["#{cwd}/mymod/init.pp"])
0
- Puppet::Module.find_manifests("mymod/init.pp").should == ["#{cwd}/mymod/init.pp"]
0
+ Dir.expects(:glob).with("#{cwd}/foobar/init.pp").returns(["#{cwd}/foobar/init.pp"])
0
+ Puppet::Module.find_manifests("foobar/init.pp").should == ["#{cwd}/foobar/init.pp"]
0
     end
0
 
0
     it "should only return files, not directories" do
...
10
11
12
 
 
13
14
15
...
18
19
20
 
 
21
22
23
...
10
11
12
13
14
15
16
17
...
20
21
22
23
24
25
26
27
0
@@ -10,6 +10,8 @@ describe "Puppet::Network::HTTP::Mongrel", "after initializing" do
0
     confine "Mongrel is not available" => Puppet.features.mongrel?
0
     
0
     it "should not be listening" do
0
+ require 'puppet/network/http/mongrel'
0
+
0
         Puppet::Network::HTTP::Mongrel.new.should_not be_listening
0
     end
0
 end
0
@@ -18,6 +20,8 @@ describe "Puppet::Network::HTTP::Mongrel", "when turning on listening" do
0
     confine "Mongrel is not available" => Puppet.features.mongrel?
0
 
0
     before do
0
+ require 'puppet/network/http/mongrel'
0
+
0
         @server = Puppet::Network::HTTP::Mongrel.new
0
         @mock_mongrel = mock('mongrel')
0
         @mock_mongrel.stubs(:run)

Comments

    No one has commented yet.