public
Rubygem
Description: Take FogBugz offline with you
Clone URL: git://github.com/francois/fogbugz_offline.git
Search Repo:
FogbugzOffline#project_path specifications.
francois (author)
Thu May 15 12:48:24 -0700 2008
commit  f9b6b6fc00020aa8ebb945b0d108b665e6f624a1
tree    e4e3d98e59bed833be2e127364fdca7f2ccec1b4
parent  48cc76a33db52c4d500fde1c3ab76bc0f9ef16ea
...
28
29
30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
0
@@ -28,3 +28,18 @@ describe FogbugzOffline, "#home_path" do
0
     lambda { FogbugzOffline.home_path }.should raise_error(ArgumentError)
0
   end
0
 end
0
+
0
+describe FogbugzOffline, "#project_path" do
0
+ before do
0
+ Dir.stub!(:getwd).and_return("/home/me/project")
0
+ end
0
+
0
+ it "should instantiate a Pathname object" do
0
+ Pathname.should_receive(:new).with(Dir.getwd).and_return(mock("pathname"))
0
+ FogbugzOffline.project_path
0
+ end
0
+
0
+ it "should return a Pathname on the current working directory" do
0
+ FogbugzOffline.project_path.should == Pathname.new(Dir.getwd)
0
+ end
0
+end

Comments

    No one has commented yet.