Displaying 16 results from an estimated 16 matches for "jamesmead".
2007 Apr 11
1
Fwd: [ mocha-Bugs-5892 ] Using a setup method in test_case_class destroys subsequent test cases
...ally see, if you are usings @your_objects.stubs().... is
something like:
NoMethodError: You have a nil object when you didn''t expect it!
The error occurred while evaluating nil.stub
----------------------------------------------------------------------
>Comment By: James Mead (jamesmead)
Date: 2007-04-11 14:24
Message:
I''ve just tried to reproduce this bug with both recent and old versions of
Mocha, but without success. Can you let me know if you are still seeing the
bug? Thanks.
----------------------------------------------------------------------
Comment By: James...
2007 Apr 29
4
NoMethodError exceptions
I''m getting the following exceptions when running mongrel_rails. Any ideas
what might be causing the problem?
Error details...
$ mongrel_rails
/opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel/command.rb:168:in
`run'': When creating '''': undefined method `downcase'' for nil:NilClass
(NoMethodError)
from
2007 Apr 11
0
Fwd: [ mocha-Bugs-6416 ] Mock objects shouldn''t define #to_s
...the #to_s method, so the
inheritted #to_s in Mocha::Mock should either be removed, or some explicit
behaviour added which can handle setting expectations for methods already
present on that object.
----------------------------------------------------------------------
>Comment By: James Mead (jamesmead)
Date: 2007-04-11 14:07
Message:
Sorry for the delayed response. I think this was fixed in revision 86 which
should have made it into release 0.4. Can you let me know if this is still
broken? Thanks.
----------------------------------------------------------------------
Comment By: James Mead (j...
2007 Dec 23
0
Fwd: [ mocha-Bugs-16523 ] Ruby 1.9 gives warning
...-------------------------------------------
>Comment By: Kornelius Kalnbach (murphy)
Date: 2007-12-23 00:56
Message:
can you compile a gem (1.0.0 please ;) and mail it to me so
I can test it here?
----------------------------------------------------------------------
Comment By: James Mead (jamesmead)
Date: 2007-12-23 00:44
Message:
Ok. I''m pretty sure that bug is already fixed in trunk. I guess it
could be time to release another gem. I''ll get to it as soon as I have
some time. Thanks.
----------------------------------------------------------------------
Comment By: Korne...
2007 Dec 20
0
Fwd: [ mocha-Patches-16424 ] Ruby 1.9 Compatibility
...1.9 Compatibility
Initial Comment:
Ruby 1.9 Compatibility
Tested on
* ruby 1.8.6 (2007-09-24 patchlevel 111) [universal-darwin9.0]
* ruby 1.9.0 (2007-12-11 patchlevel 0) [i686-darwin9.1.0]
----------------------------------------------------------------------
>Comment By: James Mead (jamesmead)
Date: 2007-12-20 15:48
Message:
Thanks for your help. I''ve tested and applied your patch and fixed a
few other warnings in revision 206 of trunk.
Cheers, James.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/t...
2007 Oct 25
0
Fwd: [ mocha-Feature Requests-15021 ] without or not params matcher
...f initialize(matcher)
@matcher = matcher
end
def ==(parameter)
!(matcher == parameter)
end
def mocha_inspect
"not(#{@matcher.mocha_inspect})"
end
end
----------------------------------------------------------------------
>Comment By: James Mead (jamesmead)
Date: 2007-10-25 13:01
Message:
Hi Jerry,
Thanks for the suggestions. I had wanted to add not() a while ago, but ran
into the keyword issue. I''ve just committed revision 191 with Not() instead.
It isn''t great, but it''s the best I can think of at the moment. What do y...
2007 Jul 04
0
Fwd: [ mocha-Bugs-11885 ] never doesn''t work with stub_everything
...''test/unit''
require ''mocha''
class MyTest < Test::Unit::TestCase
def test_never
o = stub_everything
o.expects(:x).never
o.x
end
end
----------------------------------------------------------------------
>Comment By: James Mead (jamesmead)
Date: 2007-06-30 13:33
Message:
You are quite right. Thanks for the bug report. In fact there are a
few issues related to this. I need to have a bit of a think about
it...
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tr...
2007 Apr 11
0
Fwd: [ mocha-Feature Requests-5856 ] Stubbing of private methods should be allowed
...def exists?
- stubbee.respond_to?(method)
+ def exists?
+ #stubbee.respond_to?(method)
+ (stubbee.methods | stubbee.private_methods).include?(method.to_s)
end
end
----------------------------------------------------------------------
>Comment By: James Mead (jamesmead)
Date: 2007-04-11 14:31
Message:
I don''t know whether you have noticed, but this has accidentally become
possible in more recent versions of Mocha! However, I intend to reintroduce
the restriction soon. Stubbing private methods is not in general a good
idea, because it couples your test t...
2007 Apr 11
0
Fwd: [ mocha-Feature Requests-7119 ] ability to specify call order
...3
Submitted By: Jerrett Taylor (ennoia)
Assigned to: Nobody (None)
Summary: ability to specify call order
Initial Comment:
something like flexmock''s "ordered(n)" would be handy!
----------------------------------------------------------------------
>Comment By: James Mead (jamesmead)
Date: 2007-04-11 14:39
Message:
Specifying the expected order of invocations been on the todo list for quite
a while - hopefully we''ll get round to it soon!
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/...
2007 Feb 02
0
Fwd: [ mocha-Bugs-7834 ] infinte_range.rb makes incorrect assumption about to_f
...end
end
But it''s suprising to me that mocha would do something like change the
behavior of to_s for a widely-used class like Range. My real fix would be
to remove to_s completely.
----------------------------------------------------------------------
>Comment By: James Mead (jamesmead)
Date: 2007-02-02 13:07
Message:
You''re absolutely right. Renamed Range#to_s implementation to #mocha_inspect
and checked first and last respond_to?(:to_f) as you suggested.
Sorry for the delay - I wasn''t monitoring these trackers.
Should be fixed in revision 99 of trunk....
2007 Sep 11
1
Fwd: [ mocha-Feature Requests-13763 ] add with_any_arguments method
---------- Forwarded message ----------
From: noreply at rubyforge.org <noreply at rubyforge.org>
Date: 7 Sep 2007 22:43
Subject: [ mocha-Feature Requests-13763 ] add with_any_arguments method
To: noreply at rubyforge.org
Feature Requests item #13763, was opened at 2007-09-07 17:43
You can respond by visiting:
2007 Apr 11
0
Fwd: [ mocha-Bugs-8687 ] Block''s return value is dropped on stubbed yielding methods.
...turn the value with is
returned by the yield block.
The code:
baz = foo.with_something do |bar|
bar.get_baz.to_s
end
is real code which I want to test with a mocked foo & bar
objects.
----------------------------------------------------------------------
Comment By: James Mead (jamesmead)
Date: 2007-04-11 07:03
Message:
Hi Erik,
Thanks for the bug report & suggested patch. To be honest I can''t see
anything wrong with Mocha''s behaviour in the example you''ve given. It''s not
obvious what you are trying to test. Can you not do something like...
2007 Jun 15
0
Fwd: [ mocha-Patches-11583 ] Mocha 0.5.0 throwing unexpected warnings, one line patch included
...ne patch for implementation and
> please also enhance the documentation and examples to show how
> responds_like is supposed to be used.
>
> Thanks,
>
> Glenn
>
> ----------------------------------------------------------------------
>
>> Comment By: James Mead (jamesmead)
> Date: 2007-06-15 09:44
>
> Message:
> Many thanks. You are quite right. I had forgotten about the
> responds_like functionality. I''m not 100% sure it''s complete! I''ve
> fixed the warning and switched warnings on in the rake test tasks
> to hi...
2007 Jul 21
0
Mocha featured on Railscasts
Cool. Thanks for letting me know.
On 21 Jul 2007, at 09:20, Chris O''Sullivan wrote:
> Heya James,
>
> I thought you''d like to know that Mocha featured in the latest
> Railscasts.
>
> Check it out here: http://railscasts.com/episodes/60
>
> -Chris
>
2007 Jul 21
0
Fwd: Tagging Mocha 0.5.x
Mocha 0.5.2 now tagged in svn repos.
Begin forwarded message:
> From: James Mead <james.mead at mail.com>
> Date: 21 July 2007 10:21:11 BDT
> To: Zach Dennis <zach.dennis at gmail.com>
> Subject: Re: Tagging Mocha 0.5.x
>
> Hi Zach,
>
> Thanks for pointing that out. I''ve just tagged 0.5.2 and will try
> to retrofit earlier tags as soon as I can.
2007 Jul 24
3
mocha tarballs don''t uncompress cleanly
Hi Antonio,
My environment is OS X 10.4.8.
Thanks a lot for looking into the problem. Please let me know if I
can do anything to help.
I have had problems previously with tar including Mac resource fork
files. Could this be what is causing your problem?
James.
On 24 Jul 2007, at 20:42, Antonio Terceiro wrote:
> Hi James,
>
> First of all, thanks for mocha, it''s a really