similar to: Matchers tutorial ...

Displaying 20 results from an estimated 2000 matches similar to: "Matchers tutorial ..."

2008 Mar 03
1
Rspec and plugins
I have a question regarding best practices around module and plugin testing for rails applications. In our application we have created several plugins that extend ActiveRecord::Base with class methods, that when invoked in a model add behavior to that model. For example ... class SomeModel < ActiveRecord::Base adds_some_cool_behavior adds_another_wicked_sweet_behavior end My
2006 Mar 30
1
warning message in hand-made function
Dear Rusers, I tried to implement a function comparing mean scores between one subject (the patient) and a group a control subjects. The function returns attended results, but I also obtained the following warning : Warning message: the condition has length > 1 and only the first element will be used in: if (substr(fp, 1, 1) == "<") fp else paste("=", fp) Maybe
2007 Jul 24
1
function optimization: reducing the computing time
Dear useRs, I have written a function that implements a Bayesian method to compare a patient's score on two tasks with that of a small control group, as described in Crawford, J. and Garthwaite, P. (2007). Comparison of a single case to a control or normative sample in neuropsychology: Development of a bayesian approach. Cognitive Neuropsychology, 24(4):343?372. The function (see
2007 May 29
12
questions rspec on rails
Hi, rather than flooding this list with separate emails, I''ve been queueing up questions using rspec with rails. (an irc channel would be nice too :) Here ya go... - Is there a way to test named routes? - Could I get an example how to test an ajax request (link_to_remote)? would that go in view? and/or in controller spec? - Can you assert which layout template is rendered in a
2012 Jan 15
1
Trouble installing packages on R2.14.1
Hi, Have just recently downloaded R version 2.14.1 and can't install packages (Code below), 32bit version on windows. From the looks of things access is the problem but I don't know where to start, would it be my system that is the problem or is the repository not set up for the latest version yet? Any ideas on how to rectify the problem would be greatly appreciated Cheers >
2001 Mar 27
1
Mounts on Mac, Linux but not Win98 - bad password
I am trying to set up Samba for the very first time in my life on a SlackWare Linux 7.1 system. I'm using kernel 2.4.2, and the Samba 2.0.7 that comes precompiled with Slackware 7. I'm only moderately clueful at this point, but I have experience with other Linux and networking stuff. I can build Samba from sources if you think that would help. I ran through the diagnostic tests given
2006 Feb 24
3
Summarize by two-column factor, retaining original factors
I am having trouble doing the following. I have a data.frame like this, where x and y are a variable that I want to do calculations on: Name Year x y ab 2001 15 3 ab 2001 10 2 ab 2002 12 8 ab 2003 7 10 dv 2002 10 15 dv 2002 3 2 dv 2003 1 15 Before I do all the other things I need to do with this data, I need to summarize or collapse the data by name and year. I've
2010 Dec 19
2
Problem with requiring client certificates for external connections
Folks, I'm trying to configure my dovecot installation to require client certificates for external/Internet connections, while still allowing my local network to not need certificates. This configuration is for Dovecot 2 (2.0.8 in Fedora 14), and I've tried to use the "remote" block to give different definitions for my local network vs the defaults. While most options seem to
2005 Jun 09
1
The Sims won't run with debugger
G'day, I'm using a cvs version from a few days ago, and I've just installed The Sims and its Livin' Large and House Party extensions with minimal fuss (the icons were missing in the first setup/autorun screens). Trying to run the program, it displays a dialog with the title "A debugger has been detected" and the text "Unload the debugger and try again". So,
2008 Oct 13
2
Support for CAF in flac command-line?
Michael Crawford wrote: > Unlike MP3, one > cannot even distribute the binary of an Open Source player. Even distributing an MP3 software player requires the payment of license fees: http://www.mp3licensing.com/royalty/software.html Erik -- ----------------------------------------------------------------- Erik de Castro Lopo
2007 Mar 08
1
Drawing sub-samples
Folks, I have a dataframe (snippet shown below). > demo.df[1:10, 1:6] dirn county year exp exp.wave r3 1 43901 Cuyahoga 2006 0 0 56 2 49098 Pickaway 2006 0 0 77 3 44164 Portage 2006 0 0 85 4 44610 Wayne 2006 1 1 76 5 45120 Wayne 2006 0 0 82 6 49593 Scioto 2006 1 1 89 7 46516 Crawford 2006 0 0
2008 Oct 13
3
Support for CAF in flac command-line?
Thanks for the interest, Michael. I don't use Ogg, so I'm a little wary that standard FLAC would be left out of any Ogg Frog implementation. But I say that mostly out of ignorance. I have noticed that there seem to be two worlds for FLAC, inside Ogg and outside. It's important to be aware of the fact that many hardware devices support the FLAC format directly, without the
2008 Oct 13
4
Album art - requirements
On Mon, Oct 13, 2008 at 6:40 AM, Ivo Emanuel Gon?alves <justivo at gmail.com> wrote: > A good proposal, except for the fact most album art is JPEG. Not > forgetting either that, semantically, it's pretty bizarre to have > album art in a text format. I *desperately* want to provide the cover art for my own album in PDF format. Presently I provide JPG in the MP3s; at 72 DPI it
2009 Feb 01
8
undefined method `inherit'' for Merb::Test::ExampleGroup
RSpeckers: I''m trying to install this into a Merb-generated RSpec rig: http://code.jeremyevans.net/doc/fixture_dependencies/ It requires inserting their test case into RSpec. This is the documented way to do it: describe ''Post'' do inherit FixtureDependencies::SequelTestCase And that leads to the syntax error in the subject line. (No stack trace is available
2007 Oct 21
18
plain text stories
Thanks to discussions on this list, suggestions from many of you and a patch from Pat Maddox, we now have Plain Text User Stories in Story Runner. Read more: http://blog.davidchelimsky.net/articles/2007/10/21/story-runner-in-plain-english Cheers, David
2001 Nov 29
1
legends in barplots of factors
How can I suppress a legend in a barplot when I'm plotting factors? Here's what I'm doing, x and y are both factors: plot(x,y) This gives me a barplot with a legend where I don't want it. My best solution so far is plot(x,y,legend=F) which just gives me an error message and doesn't finish the plot, but at least it doesn't put the legend on. Then I can go back and add
2009 Feb 08
1
Upgrade Doc to DocBook 5.0?
I'd like to ask what you all would think of me upgrading the libvorbis doc from whatever version of DocBook it presently uses to DocBook 5.0. There are three good reasons: - It supports XML namespaces, so you can embed stuff like Scalable Vector Graphics and MathML right into your DocBook source. - DocBook 5.0 uses Relax NG Schemas. This is a far, far better specification language than
2010 Sep 08
4
Re-using Rspec Matchers
Hey Everyone, Is it good practice to call matchers from within matchers? Kinda like this pattern: See: http://gist.github.com/570467 -- Brian
2011 Jul 28
2
RSpec, shoulda-matchers and Rails model attributes validations
I was trying out RSpec framework in a project and got stopped doing the unit test of a model. In particular, doing the test for the associations and the ActiveRecord validations. I started writing the validations but my tests didn''t look DRY at all. Before refactoring the tests checked out and look for other people solutions. I found out shoulda-matchers and Shoulda (which if I
2007 May 01
6
rspec and autotest
If you want to use rspec-0.9.2 with autotest (ZenTest-3.5.2), you''ll want to read this blog: http://blog.davidchelimsky.net/articles/2007/05/01/rspec-0-9-1-and-autotest-zentest-3-5-2 Enjoy! David