similar to: Problem with assert_difference

Displaying 20 results from an estimated 1000 matches similar to: "Problem with assert_difference"

2007 May 08
3
assert_difference eval magic in [6693]
I just saw Marcel''s change to assert_difference that changes the method API to take a string param that is evaled in a lambda. http://dev.rubyonrails.org/changeset/6693 I much preferred the old API, since it''s simple enough to pass a lambda. Passing a string means the lambda is in the wrong scope and doesn''t have access to objects in the test case scope. For an
2006 Aug 06
2
assert_difference gives undefined method error in unit tests
Hi there Am hitting undefined method errors for ''assert_difference'' in my unit tests under Rails 1.1.4 What could I be missing? Richard Sandilands
2009 Apr 30
1
error with test:functionals
Hello there, I working on my tests but I getting this strange errror: I can see on the database that the object was created but I still got an failure on my test. this is my test code: test "should create artist" do assert_difference(''Artist.count'', difference = 1) do post :create, :artist => { } end assert_redirected_to
2006 Jan 17
2
Open new window
First, I''m *very* new in rails, i''m loving it and didn''t encounter any problems in the simple tasks i''m doing yet. What I''d like to do is to open a new window containing the info of a Model (something like the show scaffold method) with a simple "close" link to close the window. Can someone please give me some directions? thanks in advance.
2012 May 22
0
functional tests assert_difference with array
given a new partner instance and a new admin instance are created, what should be the difference number : +1 or +2 the doc is not so clear on it.... assert_difference [ ''Partner.count'', ''Admin.count'' ], +1 do... thanks for feedback -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to
2006 Dec 04
5
should_be_different -- possible implementation
There is an assert_difference helper for Test::Unit (you can read about it at http://blog.caboo.se/articles/2006/06/13/a-better- assert_difference and to some it should look familiar -- you know who you are :), so I took a shot at one for rSpec on Rails. class Object def should_be_different(method = nil, difference = nil) return self.should_not_eql(yield) if method.nil?
2007 Oct 02
0
showing popup window without showing any status on taskbar
Hi friends, I am new to ROR , I want to show the popup window instead of using the title attribute of the link_to tag so that I can reseize it, Is there any way to do that Please Help Me.......................... Kiran Polawar, PolwarKiranD-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received
2017 Aug 25
2
ovirt-engine package for oVirt 4.1.x
On Fri, Aug 25, 2017 at 04:54:54PM +0200, Sandro Bonazzola wrote: > 2017-08-13 13:50 GMT+02:00 C. L. Martinez <carlopmart at gmail.com>: > > > Hi all, > > > > I am trying to install oVirt 4.1.x from centos repos but it seems > > ovirt-engine doesn't exists. But instead, ovirt-hosted-engine-setup > > exists? > > > > Is ovirt-engine
2011 Aug 02
1
Rspec teting API.
Hi! Guys, I wanna test an API built in Rails 3.0.3. So, my question is... What''s the better way to test my own api? I guess that a requests specs like these: describe ''POST /client'' it ''works'' do assert_difference post ''/clients'', :client => {...} end end can be appropriate... Someone just tested an API? I mean... simulate
2012 Jun 02
1
igraph and igraph0
Could someone tell me the difference between igraph and igraph0? I searched the CRAN web site, but cannot find an explantion of the differences. Thanks, Alan [[alternative HTML version deleted]]
2009 Mar 10
2
problem with concatinating string while taking as a path of a file
Hi all, I have a problem with concatinating strings while taking as a path here the problem is i have to take path as FPATH<-"D:\\Kiran" and file name as Fname<-"FINDINGS.CSV" and while I am reading this table I have to take path with using these two strings because in "FPATH" there is many files like findings.csv, and path will be
2004 Dec 12
2
Re: [R] Is k equivalent to k:k ?
I asked: > In this discussion of seq(), can anyone explain to > me _why_ seq(to=n) and seq(length=3) have different > types? Martin Maechler <maechler@stat.math.ethz.ch> replied: well, the explantion isn't hard: look at seq.default :-) That's the "efficient cause", I was after the "final cause". That is, I wasn't asking "what is it
2007 Nov 05
1
i need a help in getting some files which are missing in speex-1.2 beta 2
Sir, iam a PG student doing thesis work in CELP based speech coding i need to implement the same in ti-6416 kit and i have seen the open source "speex.org" but i found 3 files missing in the source files package the files are the following : 1. types.h 2. alloca.h 3. _G_config.h also i haven't got the source files ( *.snd files and *.dat files) to be encoded that is
2007 Dec 10
1
[Problem] [Centos 5] Samba-3.0.23c-2 login authentication problem
Hello, I have comfigured samba-3.0.23c-2 server on CentOS-5, but when i was logging in from the client system, even if I donot provide password and hit enter key, the client is logging in as Anonymous user. Samba server should not allow for Anonymous login. (I am configuring linux (Server) to linux (Client) i am not using windows) 1) The contents of /etc/samba/smb.conf file as follows,
2008 Jul 30
1
Hello,
Hello, A newbie to R. I am trying to use the exonmap package in R. According to the docs, the xmapDatabase() command should read the config file with all the connection parameters and connect to the DB. But i get the error shown below.... > xmapDatabase("Human") Error in mysqlNewConnection(dbDriver(drv), ...) : RS-DBI driver: (could not connect cagadmin at mysql2.cag.chop.edu on
2009 Jan 20
1
problem with applying where condition
Hi all, I am a biggener in R-Project I got one problem with applying *where condition* like if 2 tables like table1: empid name dep 101 kiran solutions 102 ram testing 103 pavan database table2: empid month sal 101 Dec 9500 102 Dec 9800 103 Dec 8500 in first table i have to take *empid* with
2009 Dec 17
2
Problem with spliting a dataframe values
Hi all, Hi this is kiran I am facing a problem to split a dataframe that is.. i have a string like: "a,b,c|1,2,3|4,5,6|7,8,8" first I have to split with respect to "|" I did it with command unlist(strsplit("a,b,c|1,2,3|4,5,6|7,8,8", "\\,")) after getting that set i made it as a dataframe and it comes like a,b,c 1,2,3 4,5,6 7,8,8 now i have to
2005 Feb 21
2
Asterisk@home Linux has no KDE
Hi Folks, I installed Asterisk@home on my PC. It went through the installation and all. But now i get a command line login window. Doesn't it has a KDE or some other type of OS GUI (i am not talking about Asterisk@home web GUI)? After i login, just the command line interface comes out. Any command to type here to get Linux OS GUI? Thanks, Kiran
2003 Aug 19
1
seed_rng
Hello, I am trying to port Openssh to MIPS platform. I am facing some problems with the function seed_rng(). I get a segmentation fault when this function is executed. Any suggestion will be appreciated. Kiran. ******************************************************* Kiran R Rao Software Engineer Integrated Device Technology,Inc. (408)-330-1835
2005 Mar 01
8
Streams with block sizes 4096 and 8192
Hello, I am looking for Ogg-vorbis streams with block sizes 4096 and 8192. Please let me how do generate these streams. This is to test our fixed-point implementation... Best regards Kiran Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential