public
Description: Run commands in ruby?
Clone URL: git://github.com/halorgium/inline_executor.git
Add a spec for testing commands that have options with values
halorgium (author)
Mon Mar 10 05:03:19 -0700 2008
commit  433004fa19fb5ec864a89409de14341e1c6ee953
tree    6669efb20eb6ab261aebe3f295e59efd89cc1b9a
parent  25c98475c9598a44832ea6b43acebe4803dd8be3
...
40
41
42
 
 
 
 
 
43
44
45
...
40
41
42
43
44
45
46
47
48
49
50
0
@@ -40,6 +40,11 @@ describe InlineExecutor, "for `/usr/bin/env git'" do
0
     run @git.log("HEAD~1", :stat => true, :p => true)
0
   end
0
   
0
+ it "should execute a single command with a single long option and value" do
0
+ @fake_system.should_receive(:execute).with("/usr/bin/env git log --pretty='raw'")
0
+ run @git.log(:pretty => "raw")
0
+ end
0
+
0
   it "should execute a 2-level command" do
0
     @fake_system.should_receive(:execute).with("/usr/bin/env git svn init")
0
     run @git.svn.init

Comments

    No one has commented yet.