Displaying 10 results from an estimated 10 matches similar to: "Need help with a test"
2006 May 17
0
teardown not cleaning the BD?
Hi,
I am a bit confused, I have a few functionnal tests were I add/delete
records on top of the ones provided in the fixture and it seems like the
records are surviving the teardown. Isnt teardown supposed to be ran
after each test? So if I have something like:
def teardown
Client.delete_all
Concept.delete_all
Variation.delete_all
ClientVariation.delete_all
end
All the
2006 May 20
3
Navigation between DB Items with active Record
Hi,
I am having troubles to figure out how to move from one record to the
other without using <find_by_sql> or other ugly tricks. So far, I have
managed to do a lot of stuff without it but I decided that I need to
learn how it works this weekend! So I need your help to figure that
out...
I have the following 4 models:
class Client < ActiveRecord::Base
has_many :client_variations
2006 May 06
6
assert_raises --> how does it work?
Hi,
I have this code fragment:
def test_delete_concept
assert_not_nil Concept.find(concepts(:entreprise).id)
get :delete_concept, {:concept_id => concepts(:entreprise).id}
assert_raises :RecordNotFound,
Concept.find(concepts(:entreprise).id)
end
basicaly, on the first line, I make sure that the concept exist in the
DB. On the second line I delete the concept fron the DB.
2011 Jun 14
1
Renaming variables
Hi guys,
I checked previous posts and I saw similar questions have been answered;
they didn't help me solve my problem though. I am using R version 2.13.0
(2011-04-13), Platform: x86_64-pc-mingw32/x64 (64-bit) and I am having
difficulties renaming variables. I tried with this command:
names (oldvariable) <- 'new_variable'
and now when I type in oldvariable the new name pops out
2006 May 22
6
how HTML_Option works?
Hi all,
all the form helpers can take a serie for options but I cant find any
documentation about them. Any one can point me toward one?
Or at least tell me how I can for example add a function that would be
call with the onblur event from a input box?
Thanks!
--
Posted via http://www.ruby-forum.com/.
2012 Jul 25
1
reshaping data
Hi,
I am trying to reshape data from a long to wide format but have a specific
task that I cannot get to output properly.
# SAMPLE DATA;
id <- c(1,2,2,3,3,3)
time <-c(0,0,5, 0, 2, 10)
x <- rnorm(length(id))
long <- data.frame(id,time,x)
# To reshape, I would like to exclude 'id' values that have NO duplicate
(i.e., remove
# id=1 in this case). My attempts failed because the
2004 Sep 30
1
expand.model.frame gives "object not found"
Hello,
I am a (relatively) experienced programmer, but new to R.
I have a problem using R 1.9.1. I have fit some data using glm(), from
within a function:
formula = as.formula(paste(depvarname, "~", rhs), env=globalenv())
return (glm(formula, family=binomial(link=logit)))
I have now come back to the formula and want to add some more
variables to it. So I do:
2007 Jun 06
4
globalize+acts_as_ferret
Hey all,
I''m using acts_as_ferret and globalize. I stumbled upon that post on google:
http://osdir.com/ml/lang.ruby.ferret.general/2007-01/msg00068.html
does anybody know if it''s included in the latest a_a_f or if it''s
planed to be? I can''t seem to find anything about it.
thanx in advance
Pat
2016 Apr 27
0
R Script Template
The subject of your email is missing. Perhaps you need to read the Posting Guide (again?) about attachments. Embedding your example directly in the body of the email is generally more accessible in archives than attaching it.
--
Sent from my phone. Please excuse my brevity.
On April 27, 2016 1:14:17 PM GMT+01:00, G.Maubach at gmx.de wrote:
>Hi All,
>
>I am addressing this post to all
2016 Apr 27
2
R Script Template
Hi All,
I am addressing this post to all who are new to R.
When learing R in the last weeks I took some notes for myself to have code snippets ready for the data analysis process. I put these snippets
together as a script template for future use. Almost all of the given command prototypes are tested. The template script contains snippets for best practices and leaves out the commands that