public
Description: Behaviour Driven Development framework for Ruby
Homepage: http://rspec.info
Clone URL: git://github.com/dchelimsky/rspec.git
Click here to lend your support to: rspec and make a donation at www.pledgie.com !
Adding spec for make_test_cmd with no files

Signed-off-by: Jonathan del Strother <jon.delStrother@bestbefore.tv>
Jonathan del Strother (author)
Wed Aug 06 06:55:49 -0700 2008
commit  5aad02b4f92768d0bc8beb6c40e3526865434c6a
tree    3b64095972d89ec3d640f1ad22a2e15334017bf8
parent  c0ba1fcdab4c30b0075b326119b23bc196ad5355
...
70
71
72
73
 
74
75
 
 
 
 
76
77
78
...
70
71
72
 
73
74
75
76
77
78
79
80
81
82
0
@@ -70,9 +70,13 @@ HERE
0
         @to_test = @files_to_test.keys.flatten.join ' '
0
       end
0
     
0
-      it "should make the apropriate test command" do
0
+      it "should make the appropriate test command" do
0
         @rspec_autotest.make_test_cmd(@files_to_test).should == "#{@ruby} -S #{@to_test} #{@options}"
0
       end
0
+
0
+      it "should return a blank command for no files" do
0
+        @rspec_autotest.make_test_cmd({}).should == ''
0
+      end
0
     end
0
   
0
     describe "mappings" do

Comments