similar to: Refactoring''s code needs refactoring''s specs?

Displaying 20 results from an estimated 400 matches similar to: "Refactoring''s code needs refactoring''s specs?"

2007 Aug 06
5
Problems with array mock
Hi everyone, I''m trying this in my helper spec and it didn''t work: @curr_odontogram.should_receive(''photos[1]'').and_return(@photo) and the error is: SyntaxError in ''PersonHelper Deberia devolverme un link para eliminar una foto'' compile error /home/gramos/src/rails/r-dental/config/../vendor/plugins/rspec/lib/spec/mocks/proxy.rb:99: syntax
2008 Jun 06
2
Problems with view spec and mocking will_paginate
Hi all, I have some failures that not I don''t understand this the pastie with index.erb.html http://pastie.org/private/zgohh6dcts04wpfagfgz5q and this is the pastie for view''s spec: http://pastie.org/210485 and the failure: 1) ActionView::TemplateError in ''/posts/index.html.erb should render list of posts'' undefined method `count'' for
2008 Sep 18
2
Ruby on Rails Resource required - New Jersey - 6 Months +
// Please reply this email to jai-Oc46A42Di8jtC6uA/Zb986xOck334EZe@public.gmane.org // Hi, My name is Jai, I am a Technical Recruiter with International Business Solutions. Ltd, NJ. My client in NJ is looking for a JD Edwards Technical Consultant. I have included a description of the project below. Please take a few moments to review, and let me know if this is something you might be interested
2007 Dec 29
15
Do you think it would look cleaner?
I was looking over some of my specs. I was thinking that the following: @game.should_receive(:name).and_return(''The Battle for Blaze'') @game.should_receive(:people).and_return(5000000) @game.should_receive(:activated).and_return(true) Would it look cleaner if I could do this instead? @game.should_recieve_and_return( :name => ''The Battle for Blaze''
2006 Jan 27
0
pgamma - inadequate algorithm design and poor coding (PR#8528)
R versions 2.1.0 to present. Examples shown were computed under Windows R-devel, current SVN, but ix86 Linux shows similar behaviour (sometimes NaN or -Inf rather than Inf, depending on the compiler and optimization level used). The replacement pgamma algorithm used from R 2.1.0 has an inadequate design and no supporting documentation whatsoever. There is no reference given to support the
2010 Sep 16
3
Purpose of qualify=yes
We have a tenant who has been having issues with a congested connection and in trouble shooting it we've noticed that there seems to be a lot of SIP traffic even when none of the phones are doing anything. We've determined that this traffic is mostly INFO packets generated by setting qualify=2000. I understand that 2000 ms is the default value for the qualification parameter but what
2009 Jan 25
1
[Fwd: Re: evaluation question]
dear list, below is an edited version of my response to an r user asking me for explaining some issues related to r's evaluation rules. i find the problem interesting enough to be forwarded to the list, hopefully for comments from whoever may want to extend or correct my explanations. (i'd like to add that much as i'm happy to receive and answer offline mails, questions related to r
2001 May 25
4
tinc 1.0pre4 released
Hello everybody, I have just released tinc 1.0pre4. Changes: - New authentication protocol (better security, and faster too). - TCPonly and IndirectData are back (but not fully tested). - Documentation revised, it's really up to date with the released package now. - tincd -K now stores public/private keys in PEM format, but keys of 1.0pre3 can still be used. - Faster and more secure
2003 Aug 12
0
excellently
Wow. dada spam. Antranig Alfaro wrote: > humans bouts scrupulously taxied annette methacrylate exert crouching > exclude hubris meteorite aides acronym exogenous boater plead savoring > tapestries courtrooms taunter bodyweight poultry pokes brandishes > poems ama mightiness assam countless actinolite merges crave technic > accomplishers bombast creation bonaparte
2010 Apr 10
10
Being attacked by an Amazon EC2 ...
Just a "heads-up" ... my home asterisk server is being flooded by someone from IP 184.73.17.150 which is an Amazon EC2 instance by the looks of it - they're trying to send SIP subscribes to one account - and they're flooding the requests in - it's averaging some 600Kbits/sec of incoming UDP data or about 200 a second )-: This is much worse than anything else I've
2010 Mar 11
2
Phones won't stop ringing
We're having an issue that isn't easily googleable so I thought I might might try here. We have several customers who want all their extensions to ring on incoming calls. Frankly I think it is craziness to ring 11 extensions all at once but that is how they want it. We're doing this by creating an incoming route that goes to a hunt list containing all the extensions. This normally
2003 Jun 10
1
-u updating too liberally
Hey ho. I apologize for what must be a stupid question, but I couldn't find any relevant posts in the archives. I want a daily backup of my home directory to another machine. Because I never delete any file, no matter how bloody useless, my home directory is inordinately large. So, it is important that I only back up those files that really need to be backed up. Here is the command I have
2008 Aug 22
2
Sending "..." to a C external
I'm trying to figure this out with "Writing R Extensions" but there's not a lot of detail on this issue. I want to write a (very simple really) C external that will be able to take "..." as an argument. (It's for optimizing a function that may have several parameters besides the ones being optimized.) I got the "showArgs" code (from R-exts) to compile and
2008 Jun 10
4
Hello
Hello, I am facing a problem in drawing heat map using R. I have a 70X3 matrix and I want to draw a heat map with 1 coloumn on X axis another on Y axis and want to show the value of 3rd coloumn using heat colours. Could you please help me with this . Thank you . Regards, Sumit [[alternative HTML version deleted]]
2007 May 25
2
Switch back to mount after fallback
Hi Geoff, Geoff Shang wrote: > Hi, > > That's what fallback-override is meant to do. Are you saying that it's not > working for you? Not working. But what is wrong? I've added the second mount to icecast.xml and tested whether it switch back to the original mount point. The mount part of icecast.xml: <mount>
2010 Feb 25
24
two questions for R beginners
* What were your biggest misconceptions or stumbling blocks to getting up and running with R? * What documents helped you the most in this initial phase? I especially want to hear from people who are lazy and impatient. Feel free to write to me off-list. Definitely write off-list if you are just confirming what has been said on-list. -- Patrick Burns pburns at pburns.seanet.com
2007 May 25
2
Switch back to mount after fallback
Hello icecast user, That's my first post to this list, because everything works fine :) But now I'm missing a feature and I'm not sure if it is possible to realise. I have two mounts. Only one defined in the configuration: <mount> <mount-name>/gast.ogg</mount-name> <fallback-mount>/offline.ogg</fallback-mount>
2007 Jun 07
6
Problem with response.should render_template
Hello, I have problems with this spec controllers: http://pastie.caboo.se/68634 when I run: rake spec:controllers I get this error: ...............F...... 1) ''DocTypeController should update and redirect to show'' FAILED expected redirect to {:action=>"show", :id=>1}, got redirect to
2007 May 25
0
Switch back to mount after fallback
Hi, It's not necessary to have a <mount> section for your fallback mount, unless you need other mount-specific stuff like different passwords, etc. Nevertheless, it should work as you desire. Is there anything in your error log when you reconnect your main stream that might explain why the listeners aren't being moved? Geoff. ----- Original Message ----- From: "Claus
2007 May 29
5
Trouble defining a stub method for a controller
Hello, Not sure if I am doing something really wrong (let''s not say stupid for now), but I haven''t been able to stub a controller method like: controller.stub!(:logged_in?).and_return(true) Please help, this is driving me nuts ;-) -- An?bal Rojas http://www.rubycorner.com http://www.hasmanydevelopers.com