similar to: Problems with array mock

Displaying 20 results from an estimated 100 matches similar to: "Problems with array mock"

2007 Jun 05
6
Help with spec controller
Hello, I haven''t been able to create a controller spec. You can see the code here: http://pastie.caboo.se/67980 The error message I''m getting is: Spec::Mocks::MockExpectationError in ''PersonController should tell the Person model to create a new person on POST to create'' Mock ''person'' received unexpected message :save with (no args)
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''
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 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
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
2008 Jun 10
1
Refactoring''s code needs refactoring''s specs?
Hi guys, I have one question: When refactoring the working code I need or should refactoring the specs too? My old code is: http://pastie.org/private/gpskgtavm4yzutanq1ro3w My new refactored code: http://pastie.org/private/2emgi1hr5iga3m9jib4q and the specs that are still passing without refactoring: http://pastie.org/private/qn3uaoin0k2n8vjsusssg Regards. -- "Most of you are
2002 Jan 30
2
dataframe subset using levels as criteria
Hi I want to select a subset of a dataframe (frota) using the levels of a factor (matricula) in another dataframe (logbooks.eda). The command and output are bellow and it's not working ... > frota[frota$matricula==levels(logbooks.eda$matricula),] matricula compff tab potmaq 1 A-1420-C NA NA NA 2 A-1676-C NA 12070 36800 3 A-1954-C 3214 17565 44100 4 A-1961-C
2018 Oct 09
3
Generar nombres de vectores dentro de una función y asignarles valor
Problema de autodidacta que no sabe cómo se llaman a las cosas, entonces no le sabe preguntar Google: Tengo una función que tiene que generar unos vectores, para después evaluarlos y devolverme el resultado; necesito que genere los nombres de los vectores y asignarles valores. Y No sé ni hacerlo ni decirlo con pocas palabras. a function(describir, segun.variable) { matriz <-
2020 Apr 17
3
Convertir lista de precios a dolares por gramo
Se ha borrado un adjunto en formato HTML... URL: <https://stat.ethz.ch/pipermail/r-help-es/attachments/20200417/11369880/attachment.html>
2014 Oct 09
3
cambiar un valor por NA en data frame
ESTIMADA COMUNIDAD R, Tengo un data frame de datos de salud sobre Enfermedades de Notificacion Obligatoria. Algunas variables tienen una codificacion 99, 999, y 9999 para asiganr los valores perdidos. LAs variables que tienen esta codificacion son la EDAD, COMUNA_RESIDENCIA y la REGION_RESIDENCIA, respectivamente. Me gustaria poder editar esos valores a NA, sin tener que hacerlo uno por uno con
2013 Jul 24
2
Error al utilizar twitteR
Si, Carlos, gracias. Pero desafortunadamente el link con el PDF no funciona :( --JIV Sent from my phone. Please excuse my brevity and misspelling. On Jul 24, 2013, at 4:51 PM, Carlos Ortega <cof@qualityexcellence.es> wrote: Hola, ¿Viste la sugerencia/ayuda en StackOverflow?: http://stackoverflow.com/questions/17408930/twitter-first-example Saludos, Carlos Ortega
2014 Feb 27
3
maildir quota divergence
Hello; We are using maildir quotas and have found differences in many users in respect to what system command are showing and doveadm quotas. For example, four user test, we have: doveadm quota get -u test Quota name Type Value Limit % STORAGE 98066 102400 95
2023 Jan 30
0
Obligatoria a partir del 11 de Marzo 2023
M?XICO NOM-001-SEMARNAT-2021 Comunicado del 30 de Enero 2023 Actualizaci?n de la NOM-001-SEMARNAT-2021 Aplicaci?n Regulatoria Obligatoria a partir del 11 de Marzo 2023 Fecha del evento 27 de Febrero 2023 Online v?a Internet Capacitaci?n Indispensable para Negocios y Empresas que realicen Descarga de Aguas Residuales Este curso tiene el objetivo principal de dar a conocer la aplicaci?n,
2023 Jun 06
0
Norma Obligatoria de Aguas Nacionales
An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/pkg-xen-devel/attachments/20230606/378d4f65/attachment.htm>
2015 Oct 01
1
VAD configuration
Greetings, It is possible to manually adjust the sensibility of the VAD module in the Opus encoder? Thanks, ML www.eid.pt EID, S.A. Capital Social 1.100.000 N de matricula unico 501 400 699 DISCLAIMER art_001_01d0fc50.d7ccaf08" -------------- next part -------------- An HTML attachment was scrubbed... URL:
2015 Oct 02
0
FW: VAD configuration
Thank you for the response. No, I have not. It was a consideration how to tune the VAD performance in low SNR scenarios. ML ________________________________ From: Lopes, Mario Jose Sent: quinta-feira, 1 de Outubro de 2015 14:56 To: 'opus at xiph.org' Subject: VAD configuration Greetings, It is possible to manually adjust the sensibility of the VAD module in the Opus
2009 Nov 18
1
cache auth clear
Hello: Have found probably auth cache clearing is not working well. I get this log after issuing several SIGUSR2 and SIGHUP from command line: Nov 18 13:56:26 dovecot: Info: Dovecot v1.2.6 starting up Nov 18 13:56:33 auth(default): Info: Authentication cache hits 5/14 (35%) Nov 18 13:56:33 auth(default): Info: Authentication cache inserts: positive: 9 1213B, negative: 0 0B Nov 18 13:57:40
2015 Jun 03
1
SIS attachments compressed
Hello: In case it is defined to use zlib compression, does SIS save attachments compressed? I have found this question replied in the past (2012) and the answer was NO. I ask again just to know if there have been changes or if it is in the roadmap to add compression. I have been testing to migrate from maildir+zlib to mdbox+zlib+sis and the results, in terms of space used, and worst than
2019 Feb 17
2
CASifying dovecot and webmail
Hello: I'm trying to authenticate webmail (roundcube) and dovecot with Apereo CAS. I don't find any good guide and everything I have found is some years old. Has any of you done a recent integration with CAS and can share the details ? Best regards -- ------------------------------------------------------ Juan Carlos Sanchez Hernandez Servicio de Infraestructura e Innovaci?n