cool, thanks
2008/9/13 Matt Wynne <[EMAIL PROTECTED]>
> On 13 Sep 2008, at 13:42, Joaquin Rivera Padron wrote:
>
> hi,
> this did the trick:
>
> class Shell
> def self.sh command
> %{ command }
> end
> end
>
> then I am able to:
>
> it "should be mock alright" do
>Shell.shou
On 13 Sep 2008, at 13:42, Joaquin Rivera Padron wrote:
hi,
this did the trick:
class Shell
def self.sh command
%{ command }
end
end
then I am able to:
it "should be mock alright" do
Shell.should_receive(...).with(...)
end
is that correct so?
You've definitely got the i
hi,
this did the trick:
class Shell
def self.sh command
%{ command }
end
end
then I am able to:
it "should be mock alright" do
Shell.should_receive(...).with(...)
end
is that correct so?
sorry aboout latter one (gotta do something about that hotkeys sendind my
mails all of
hi,
this did the trick:
class Shell
def self.sh command
%{ command }
end
end
then I am able to:
it "should be mock alright" do
end
2008/9/13 Scott Taylor <[EMAIL PROTECTED]>
>
> On Sep 12, 2008, at 9:29 AM, Matt Wynne wrote:
>
> On 12 Sep 2008, at 14:12, Joaquin Rivera Padr
On Sep 12, 2008, at 9:29 AM, Matt Wynne wrote:
On 12 Sep 2008, at 14:12, Joaquin Rivera Padron wrote:
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 = mo
thanks,
I'll give that a try
joaquin
2008/9/12 Matt Wynne <[EMAIL PROTECTED]>
> On 12 Sep 2008, at 14:12, Joaquin Rivera Padron wrote:
>
> 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
On 12 Sep 2008, at 14:12, Joaquin Rivera Padron wrote:
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 su
ooop, 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 i