Displaying 20 results from an estimated 1000 matches similar to: "public SVN dead?"
2006 Dec 14
3
Stubbing constructiors
This works:
    class X
      def X.initialize( stuff )
      end
    end
    X.initialize("bla")
However stubbing it doesn,t:
    require ''test/unit''
    require ''stubba''
    class X
      def X.initialize( stuff )
      end
    end
   class XTest < Test::Unit::TestCase
     def test_
       X.stubs(:initialize).with("bla")
      
2007 Jan 11
4
counter-intuitive behaveour when passing a proc to Mocha::Expectation#returns
Let''s say that I have a procedure that:
* gets the number of bytes to write into some file
* and returns the number of successfully written bytes
   def save( text, len )
This procedure is being used all over the place especially inside the method
"process" which I want to test. Thus in order not to polute my filesystem I stub
the "save" procedure. But of course in
2006 Dec 13
1
published Mocha tarball is missing the expamples/ dir
Hello James,
am trying to package Mocha for Debian and have noticed, that both the tarball
and the zip are missing the examples/ directory.
*t
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
2006 Dec 13
1
Mocha: and there''s an "init.rb" in the SVN too
Sorry for the spam avalanche - there''s an init.rb file in the trunc SVN branch
too, which I''m not so sure about whether to include it or not in the Debian
package...
*t
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
2006 Jan 09
4
Engine install problems with OS X
I have everything installed via Darwin ports. When I try to do a  
"script/plugin install engines" in a freshly created rails app I get  
the following:
Macintosh:~/My Web Sites/nckapool bill$ script/plugin install engines
svn: PROPFIND request failed on ''/rails/plugins''
svn: PROPFIND of ''/rails/plugins'': 403 Forbidden (http:// 
svn.protocool.com)
2006 Mar 13
9
Subversion problem - since you guys talked me into it :)
Following the advice here I''ve been trying to get subversion installed
and working from my virtual dedicated server this weekend.  I believe
everything is installed properly, and that all that''s left is to get the
apache httpd.conf file set up correctly.
to talk to my server with my client I''m using the path:
http://svn.mylittlecorneroftheinternet.com/svn/repos/
error
2007 Dec 21
5
Mocha and rails 2.0.2?
Folks-
  With Rails 2.0.2, I''m seeing mocha failures where they did not fail
with Rails 2.0.1
test_set_to_process_fail_in_transaction(FileRecordTest):
NoMethodError: undefined method `ord'' for 63:Fixnum
    /home/wolpert/svn/rubylms/vendor/plugins/mocha/lib/mocha/class_method.rb:45:in
`hidden_method''
   
2006 Mar 13
1
svn rails problem
svn co http://dev.rubyonrails.org/svn/rails/trunk
svn: PROPFIND request failed on ''/svn/rails/trunk''
svn: PROPFIND of ''/svn/rails/trunk'': Could not resolve hostname 
`dev.rubyonrails
.org'': The requested name is valid and was found in the database, but it 
does no
t have the correct associated data being resolved for. 
(http://dev.rubyonrails
.org)
-- 
2006 Mar 07
1
SVN troubles
Dear r-devel,
Sorry to trouble the list with this, but I've been beating my head  
against the wall trying to figure out what's wrong. When I try to  
connect to the R SVN server, I get the following message:
(sly at cornas):~/src/R$ svn co https://svn.r-project.org/R/trunk r-devel
svn: PROPFIND request failed on '/R/trunk'
svn: PROPFIND of '/R/trunk': SSL negotiation
2009 Jun 13
2
removing Mocha; 'spec spec' fails but the specific model file passes
I happened to mix ryan bates'' authentication scaffold with
rspec_scaffold on a  demo project.
and ran into the problem of mixing mock frameworks...ryan uses mocha.
So, as a learning experience, I choose to redo ryan''s tests without
mocha but ran into a strange problem with tests of the User model.
With debugging you can see....
If you run just the user_spec.rb file, everything
2001 Nov 21
3
smbpasswd -r pdd not working
Hi,
I am running Samba 2.2.1 on a Redhat 7.2 machine and have the following
in smb.conf:
        workgroup = AGS_NT
        security = domain
        password server = mocha bigblue
        encrypt passwords = yes
everything else is default.  "mocha" is the PDC and is a NT4 box".
The machine has joined the domain with "smbpasswd -j AGS_NT".
When using "smbpasswd
2006 Dec 15
3
how to install from svn?
When trying to run Chris samples I get error:
/usr/lib/ruby/gems/1.8/gems/mocha-0.3.2/lib/smart_test_case.rb:3:
uninitialized constant Test (NameError)
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require''
        from /usr/lib/ruby/gems/1.8/gems/mocha-0.3.2/lib/mocha.rb:1
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:33:in
2007 Jan 02
4
allow stubbing of previously defined methods such as "id"
On my current project I needed to create a stub that responded  
correctly to the id message.  Here''s the change I put into my copy of  
head.
Index: lib/mocha/mock_methods.rb
===================================================================
--- lib/mocha/mock_methods.rb   (revision 1114)
+++ lib/mocha/mock_methods.rb   (working copy)
@@ -68,6 +68,7 @@
       method_names =
2006 Sep 11
4
Using rspec and mocha
I prefer to use rspec than test::unit for developing my apps.  However
I''ve found its mocking library to be pretty inflexible compared to
Mocha.  This isn''t really a surprise since rspec isn''t intended as a
mocking framework, whereas Mocha is.  So I''d like to play to both of
their strengths and use rspec as my testing/specification framework
and Mocha do to
2006 Sep 11
4
Using rspec and mocha
I prefer to use rspec than test::unit for developing my apps.  However
I''ve found its mocking library to be pretty inflexible compared to
Mocha.  This isn''t really a surprise since rspec isn''t intended as a
mocking framework, whereas Mocha is.  So I''d like to play to both of
their strengths and use rspec as my testing/specification framework
and Mocha do to
2006 Sep 22
2
foo.expects(:blah).returns(10).then(11) syntax
I recently needed the behavior of my object to change on subsequent  
method calls so I added the syntax above.
Here''s the diff of changes I made:
Index: test/mocha/expectation_test.rb
===================================================================
--- test/mocha/expectation_test.rb      (revision 854)
+++ test/mocha/expectation_test.rb      (working copy)
@@ -95,6 +95,12 @@
     
2007 Jun 12
4
advice on new failures with 0.5.0
Hi all,
We just updated to the latest version of Mocha and now we''re seeing a  
lot of odd test failures. If this isn''t the appropriate place for a  
question like this, please let me know.
Say I have code like this in a controller:
DataMonitor.toggle_notification!
And I mock it like this:
DataMonitor.any_instance.stubs(:toggle_notification!)
This would work fine with Mocha
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
2006 Oct 12
1
did something in revision 68 break stubs?
Hi,
I''ve been a happy user of Mocha for a while now. My current project is 
by far the most complicated I''ve ever worked on and Mocha has made 
testing it much easier than it would otherwise be.
So, I was highly disturbed to come in this morning, run svn up and find 
that something in today''s update broke lots of my tests. I use Mocha as 
a Rails plugin under
2006 Sep 08
1
A quick guide to Mocha
Hello :)
Having just gone through the (admittedly simple) API of Mocha to learn 
how it works, I wrote a quick guide (190 lines) to help others get up to 
speed. I''ve attached it as RDOC and as HTML.
It is a first draft - please help me improve by giving feedback !
Contents :
Overview - Quick overview of Mocha
Unit testing, mock object and stubs - Very quick introduction to mock