[rspec-users] specs on private methods

2008-01-10 Thread barsalou
It's interesting that this thread has started because I just ran into this problem. The error I got was: NoMethodError in 'Signup she be a valid mac address' protected method `normalize_mac' called for # ./spec/models/signup_spec.rb:10: Here's the spec: describe Signup do before(:each) do

Re: [rspec-users] MissingSourceFile spec/rails/story_adapter.rb

2007-11-16 Thread barsalou
Quoting [EMAIL PROTECTED]: > I can see that the file story_adapter.rb isn't where it is supposed to > be, however, I don't know where it comes from in the first place. > > Can someone give me a hint here? > > I installed using: > > > ruby script/plugin install > svn://rubyforge.org/var/svn/rspec/t

[rspec-users] MissingSourceFile spec/rails/story_adapter.rb

2007-11-15 Thread barsalou
I can see that the file story_adapter.rb isn't where it is supposed to be, however, I don't know where it comes from in the first place. Can someone give me a hint here? I installed using: ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec ruby script/plugin inst

Re: [rspec-users] testing scripts

2007-11-13 Thread barsalou
, at 7:45 pm, barsalou wrote: > What I'm doing now is wrapping the methods in a module, then including > the module at the top of the script. Can you post some examples of the modules, classes and methods you have? Every script I've written is basically just a little object-oriented

[rspec-users] testing scripts

2007-11-13 Thread barsalou
So in the past I've written a script that query's a remote DB, takes the data, validates it, then does some processing, producing a new file with the data in a completely different format. Since this is a script with it's own set of methods, etc, how do I go about testing the pieces parts? It

[rspec-users] Login testing ideas

2007-10-11 Thread barsalou
I've been going through Pat's example story and noticed that there was no checking for a bad login. I assume this is because that would have made the article bigger and more complicated than it needed to be. So the question that comes of of this is: How do folks normally handle the negative ca

Re: [rspec-users] Tarball anyone

2007-10-01 Thread barsalou
Thanks guys, I appreciate it. Mike B. This message was sent using IMP, the Internet Messaging Program. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman

[rspec-users] Tarball anyone

2007-10-01 Thread barsalou
Anyone willing to tar me up the 1.0.8 of rspec and rspec_on_rails? I'm interested in giving the story runner stuff a try. I really got to get svn going somehow. Mike B. This message was sent using IMP, the Internet Messaging Progr

Re: [rspec-users] 1.0.8 tarball problem.

2007-09-28 Thread barsalou
Scott said: This was a known problem. I believe it should be fixed in the next release (fixed on trunk). Scott, Would that mean I have to use svn? I don't have that option at the moment. Thanks for letting me know, though. Mike B. -

[rspec-users] 1.0.8 tarball problem.

2007-09-27 Thread barsalou
When I untar 1.0.8 after having downloaded it from rubyforge, I get these errors: rspec-1.0.8/spec/spec/runner/spec_parser_spec.rb rspec-1.0.8/spec/spec/spec_classes.rb gzip: stdin: decompression OK, trailing garbage ignored rspec-1.0.8/spec/spec/translator_spec.rb rspec-1.0.8/spec/spec_helper

Re: [rspec-users] Using rcov and ouput to screen

2007-08-10 Thread barsalou
Sorry I left off the subject by accident...hopefully this will connect to the thread. Mike B. - Forwarded message from [EMAIL PROTECTED] - Date: Fri, 10 Aug 2007 14:33:18 -0800 From: barsalou <[EMAIL PROTECTED]> Reply-To: barsalou <[EMAIL PROTECTED]> To:

[rspec-users] (no subject)

2007-08-10 Thread barsalou
Scott said: >> I'd like to output my rcov data to the screen in ascii instead of >> html...is that possible using the rake spec:rcov command? > Look at the RSpec gem's rdoc. I believe it is something like > Rake::RcovTask. An option can be provided to give rcov options. Run > rcov --help.

[rspec-users] Using rcov and ouput to screen

2007-08-09 Thread barsalou
I'd like to output my rcov data to the screen in ascii instead of html...is that possible using the rake spec:rcov command? Also, is there somewhere that will allow me to search the mail archives...I'm pretty sure someone else has asked similar questions. Thanks for the help. Mike B.

Re: [rspec-users] Rspec on rails with out database?

2007-07-27 Thread barsalou
Quoting David Chelimsky <[EMAIL PROTECTED]>: > On 7/27/07, David Chelimsky <[EMAIL PROTECTED]> wrote: >> On 7/27/07, David Chelimsky <[EMAIL PROTECTED]> wrote: >> > On 7/24/07, Eric Pugh <[EMAIL PROTECTED]> wrote: >> > > Hi all, >> > > >> > > I am trying to use rspec_on_rails in a Rails app that d

Re: [rspec-users] need help getting a word right

2007-07-18 Thread barsalou
Well in that specific case, please seems like a good choice please do @thing.should be_somthing end But If you had text in between then it wouldn't seem the same: please "whatever text" do @thing.should be_something end Quoting David Chelimsky <[EMAIL PROTECTED]>: > H

[rspec-users] rspec for the svn-less (ruby version)

2007-07-01 Thread barsalou
A couple of things: - it is defaulted to 1.0.5, but if there was a "current" I could probably use that instead. - it seems like everyone might not use the rspec_on_rails piece...what do other think? - there are some other checks I could put in here, suggestions are welcome. - general code sug

Re: [rspec-users] testing instance variables that are set inside views

2007-07-01 Thread barsalou
Quoting David Chelimsky <[EMAIL PROTECTED]>: >>> >> Thanks Aslak, I wondered this myself. I looked around here : >> http://rspec.rubyforge.org/rdoc/index.html for have_tag but didn't find >> it. >> >> Where would be a good place to find some of these matchers? > > have_tag is not part of rspec's

Re: [rspec-users] testing instance variables that are set inside views

2007-06-30 Thread barsalou
Quoting aslak hellesoy <[EMAIL PROTECTED]>: > @header is an implementation detail of your view that you shouldn't > care about in your view spec at all. I recommend you use the have_tag > matcher instead to verify what content gets rendered as expected. > > Aslak > Thanks Aslak, I wondered this m