ooopssss, sorry the last one goes out unfinished (some gmail hotkey)...
hello there,
what is the best (or any) way of mocking the running of shell commands?
e.g.
code like the following:
def method
%{ ls }
end
spec:
it "should list the directory contents"
shell = mock(Object) # %{} lives in Kernel module and its sugar for `
shell.should_receive(:`).with(:ls)
end
sorry about latter one, thanks in advance
joaquin
2008/9/12 Joaquin Rivera Padron <[EMAIL PROTECTED]>
> hello there,
> what is the best (or any) way of mocking the running of shell commands?
>
> e.g.
> code like the following:
>
> %{ ls }
>
> spec:
>
> it "should list the directory contents"
> shell = mock(Object) # %{} lives in Kernel module and its sugar for `
>
> end
>
>
>
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users