search for: pryce

Displaying 8 results from an estimated 8 matches for "pryce".

Did you mean: price
2007 Mar 05
4
When to stub/when to mock (was Rails functional testing and Mocha)
...mands or queries, and mock expectations in test methods (specify blocks in rspec). This keeps the noise of what is necessary but uninteresting (from the perspective of the tests) out of the way of the test methods, which can focus entirely on the interesting bits. The motivation is the same as Nat Pryce''s - expecting only the interesting bits will make tests less brittle - but the resulting principle revolves on a different axis. Thoughts on this? Cheers, David
2010 Apr 19
1
Formatting data, adding column names, use reshape, a newbie question
Hi all, I'm an R novice. I have data that's already formatted as "molten" that reshape should be able to work with. For example, the following was read in with read.csv(filename,sep=" ", header=FALSE) V1 V2 V3 V4 V5 1 original book book.source1.txt 328900494 3039.525 2 original book book.source1.txt
2010 Dec 22
2
how to pass object "members" in functions
Hello, This is an R-syntax question when attempting to manipulate/access objects when passed to a function. I have a function attempting to just print values attached to an argument object. For example, printThis <- function(obj, parm2, parm3) { print(obj.stuff1) print(obj.stuff2) } where I've assigned stuff1 and stuff2 to the actual object passed as such actualObject.stuff1 <-
2006 Nov 21
5
stubbing in development environment
Hi guys. Quite happy with mocha for testing. It''s been a bit of an eye opener for me, and I expect to begin using it heavily. One other thing I''d like to do is stub out particular class methods in development. Is there a way I can do this with mocha? Jason
2008 Mar 18
11
"Why not MockEverthing" or why use fixtures for all tests?
Hello fellow RSpec users. Before you all start warming up your flame throwers please let me explain my Subject line. I''ve been working over 4 months on a large Rails project with a few other developers. Test coverage was spotty at best, though they *were* RSpec tests. One of the other developers and I had started adding more tests, mostly controller tests using the methodology
2007 Dec 06
43
Mocks? Really?
OK, so i''ve played a bit with mocks and mock_models in controller and view tests and i have a question. Is this statement really correct: "We highly recommend that you exploit the mock framework here rather than providing real model objects in order to keep the view specs isolated from changes to your models." (http://rspec.rubyforge.org/documentation/rails/writing/views.html
2010 Feb 19
1
order two dataframes by an integer column from either data frame
Hi, I'm an R nooob! So please pardon this easy question! I have two data frames that share a common column, data1.name and data2.name. How would I be able to order the other based on an integer column from either data frame? For example, how do I order data2 based on data1.age? Or data1 based on data2.salary? Thanks! Paul -- Paul Rigor Pre-doctoral BIT Fellow and Graduate Student
2010 Dec 23
2
python-like dictionary for R
Hi, I was wondering if anyone has played around this this package called "rdict"? It attempts to implement a hash table in R using skip lists. Just came across it while trying to look for simpler text manipulation methods: http://userprimary.net/posts/2010/05/29/rdict-skip-list-hash-table-for-R/ Cheers, Paul [[alternative HTML version deleted]]