Re: [rspec-users] RSS Validation matcher for RSpec/Rails

2008-02-08 Thread Nathan Sutton
Validation doesn't mean it's formatted to be readable though, does it? Nathan Sutton [EMAIL PROTECTED] rspec 1.1.3 rspec_on_rails 1.1.3 rails 2.0.2 On Feb 8, 2008, at 5:23 PM, Rick DeNatale wrote: > Not sure what you're talking about. > > 1) My blog is just standa

Re: [rspec-users] Development Cycle

2008-02-04 Thread Nathan Sutton
sounds good guys, thanks :) Nathan Sutton [EMAIL PROTECTED] rspec 1.1.3 rspec_on_rails 1.1.3 rails 2.0.2 On Feb 4, 2008, at 1:14 AM, Pat Maddox wrote: > On Feb 3, 2008 9:19 PM, Nathan Sutton <[EMAIL PROTECTED]> wrote: >> Hey guys, I'm trying to work out the orde

[rspec-users] Development Cycle

2008-02-03 Thread Nathan Sutton
...but how to actually do it is what confuses me. Anyone know of any screencasts or tutorials working through the development of a feature in this way? Nathan Sutton [EMAIL PROTECTED] rspec 1.1.3 rspec_on_rails 1.1.3 rails 2.0.2 ___ rspec-users ma

Re: [rspec-users] client first, top down, outside in, etc with rails

2008-01-28 Thread Nathan Sutton
awesome Nathan Sutton [EMAIL PROTECTED] rspec 1.1 rspec_on_rails 1.1 rails 2.0.2 On Jan 28, 2008, at 5:24 PM, Jay Donnell wrote: > I apologize, I oversimplified for the sake of brevity. We have most > of the models written but there are some pieces than aren't and > won'

Re: [rspec-users] Spam Protection

2008-01-18 Thread Nathan Sutton
I made this address for mailing lists only, but as it is I only have 14 spam messages at the moment... Nathan Sutton [EMAIL PROTECTED] rspec 1.1 rspec_on_rails 1.1 rails 2.0.2 On Jan 18, 2008, at 12:03 PM, David Richards wrote: > I was disgruntled with the amount of spam I was getting, s

Re: [rspec-users] .html.erb files and autotest

2008-01-13 Thread Nathan Sutton
Awesome David, yeah I was quite surprised that verbose was on by default in 3.7.2. Nathan Sutton [EMAIL PROTECTED] rspec 1.1 rspec_on_rails 1.1 rails 2.0.2 On Jan 13, 2008, at 9:33 PM, David Chelimsky wrote: > On Jan 13, 2008 9:14 PM, Corey Haines <[EMAIL PROTECTED]> wrote: >>

Re: [rspec-users] .html.erb files and autotest

2008-01-13 Thread Nathan Sutton
Set $VERBOSE=false in your .autotest file in your home directory. Nathan Sutton [EMAIL PROTECTED] rspec 1.1 rspec_on_rails 1.1 rails 2.0.2 On Jan 13, 2008, at 9:10 PM, Corey Haines wrote: I get this Dunno! app/views/coupon/index.html.erb On Jan 13, 2008 5:29 PM, Corey Haines <[EM

Re: [rspec-users] Varying test data

2008-01-11 Thread Nathan Sutton
We're clearly at green! Nathan Sutton [EMAIL PROTECTED] rspec 1.1 rspec_on_rails 1.1 rails 2.0.2 On Jan 11, 2008, at 10:19 AM, Jonathan Linowes wrote: > > On Jan 11, 2008, at 5:50 AM, David Chelimsky wrote: > >> Apparently, Pat and I are twins separated at birth. > >

Re: [rspec-users] Shoulda

2008-01-10 Thread Nathan Sutton
That too :) Nathan Sutton [EMAIL PROTECTED] rspec 1.1 rspec_on_rails 1.1 rails 2.0.2 On Jan 10, 2008, at 6:59 PM, David Chelimsky wrote: > On Jan 10, 2008 6:48 PM, Nathan Sutton <[EMAIL PROTECTED]> > wrote: >> You should browse over how shoulda does it here: >> http:/

Re: [rspec-users] Shoulda

2008-01-10 Thread Nathan Sutton
You should browse over how shoulda does it here: http://thoughtbot.com/projects/shoulda/tutorial/controllers and here: http://dev.thoughtbot.com/shoulda/classes/ThoughtBot/Shoulda/Controller/ClassMethods.html Nathan Sutton [EMAIL PROTECTED] rspec 1.1 rspec_on_rails 1.1 rails 2.0.2 On Jan 10

Re: [rspec-users] Shoulda

2008-01-10 Thread Nathan Sutton
Well then, hop to! ;) Nathan Sutton [EMAIL PROTECTED] rspec 1.1 rspec_on_rails 1.1 rails 2.0.2 On Jan 10, 2008, at 6:10 PM, David Chelimsky wrote: > On Jan 10, 2008 6:07 PM, Nathan Sutton <[EMAIL PROTECTED]> > wrote: >> Hey now! Really though, have you ever been digging thro

Re: [rspec-users] Shoulda

2008-01-10 Thread Nathan Sutton
time/energy, so this is a simple solution. :) Nathan Sutton [EMAIL PROTECTED] rspec 1.1 rspec_on_rails 1.1 rails 2.0.2 On Jan 10, 2008, at 6:04 PM, David Chelimsky wrote: > On Jan 10, 2008 6:02 PM, Nathan Sutton <[EMAIL PROTECTED]> > wrote: >> Nathan Sutton >> [

Re: [rspec-users] Shoulda

2008-01-10 Thread Nathan Sutton
There David goes, making sense again. Nathan Sutton [EMAIL PROTECTED] rspec 1.1 rspec_on_rails 1.1 rails 2.0.2 On Jan 10, 2008, at 5:59 PM, David Chelimsky wrote: > On Jan 10, 2008 5:50 PM, Nathan Sutton <[EMAIL PROTECTED]> > wrote: >> Also, that strikes me as strang

Re: [rspec-users] Shoulda

2008-01-10 Thread Nathan Sutton
Also, that strikes me as strange that the current philosophy is that for the rspec_on_rails plugin. I would think rails-specific matchers would be endorsed at some point, since rails is so big on convention. Nathan Sutton [EMAIL PROTECTED] rspec 1.1 rspec_on_rails 1.1 rails 2.0.2 On Jan 10

Re: [rspec-users] Shoulda

2008-01-10 Thread Nathan Sutton
We'll see if I get around to it. It would be a lot of work, I think, and I know a couple people who have started similar efforts. Nathan Sutton [EMAIL PROTECTED] rspec 1.1 rspec_on_rails 1.1 rails 2.0.2 On Jan 10, 2008, at 5:47 PM, Josh Knowles wrote: > On 1/10/08, Nathan Sutton

Re: [rspec-users] Shoulda

2008-01-10 Thread Nathan Sutton
Hmm, that includes a good number of them, but there's still the restful resource to think about, which is in my opinion the most valuable one. Would you consider the addition of a restful resource matcher similar to shoulda's? Nathan Sutton [EMAIL PROTECTED] rspec 1.1 rspec_on

[rspec-users] Shoulda

2008-01-10 Thread Nathan Sutton
tious programmer go to town implementing these for rspec_on_rails? Nathan Sutton [EMAIL PROTECTED] rspec 1.1 rspec_on_rails 1.1 rails 2.0.2 ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] StoryRunner docs/guidance

2007-12-21 Thread Nathan Sutton
Yeah, this is truly needed, you have a second from me. Nathan Sutton [EMAIL PROTECTED] rspec 1.1 rspec_on_rails 1.1 rails 2.0.1 On Dec 21, 2007, at 1:59 PM, Jonathan Leighton wrote: > Hi all, > > Are there any plans for better documentation for the new StoryRunner > feature? I tri

Re: [rspec-users] namespaced controllers

2007-12-12 Thread Nathan Sutton
Well put. Nathan Sutton [EMAIL PROTECTED] rspec edge revision 3052 rspec_on_rails edge revision 3049 rails 2.0.1 On Dec 12, 2007, at 4:37 PM, David Chelimsky wrote: > On Dec 12, 2007 5:03 AM, Thijs Cadier <[EMAIL PROTECTED]> wrote: >> >> Has anybody been taking a look at th

Re: [rspec-users] Rspec 1.0.8 with Rails 2.0

2007-12-11 Thread Nathan Sutton
It's likely to fall completely on its face in a horrific manner, you'll enjoy life much more if you use edge rspec. Nathan Sutton [EMAIL PROTECTED] rspec edge revision 3052 rspec_on_rails edge revision 3049 rails edge revision 8269 On Dec 11, 2007, at 5:48 PM, Yitzhak Bar Geva wrote

Re: [rspec-users] RSpec TMbundle

2007-12-11 Thread Nathan Sutton
As usual, David to the rescue. Thanks, Nathan Sutton [EMAIL PROTECTED] rspec edge revision 3052 rspec_on_rails edge revision 3049 rails edge revision 8269 On Dec 11, 2007, at 12:40 PM, David Chelimsky wrote: > On Dec 11, 2007 12:28 PM, Ben Mabey <[EMAIL PROTECTED]> wrote: >> &

Re: [rspec-users] RSpec TMbundle

2007-12-11 Thread Nathan Sutton
I wouldn't even know what to check to determine whether it had been moved. Nathan Sutton [EMAIL PROTECTED] rspec edge revision 3052 rspec_on_rails edge revision 3049 rails edge revision 8269 On Dec 11, 2007, at 12:28 PM, Ben Mabey wrote: > Nathan Sutton wrote: >> I tried c

[rspec-users] RSpec TMbundle

2007-12-11 Thread Nathan Sutton
I tried checking it out today using instructions here: http://rspec.rubyforge.org/tools/extensions/editors/textmate.html I get a 'svn: Connection closed unexpectedly'. Did it move or is it down? Nathan Sutton [EMAIL PROTECTED] rspec edge revision 3052 rspec_on_rails edge revision

Re: [rspec-users] spec for model_id should eql

2007-12-03 Thread Nathan Sutton
It's worked since I started using rspec, but I started relatively recently, and only on edge. Nathan Sutton [EMAIL PROTECTED] rspec edge revision 3014 rspec_on_rails edge revision 3014 rails edge revision 8238 On Dec 3, 2007, at 1:23 PM, David Chelimsky wrote: > On Dec 3, 2007

Re: [rspec-users] spec for model_id should eql

2007-12-03 Thread Nathan Sutton
Department.stub!(:find_by_code).with("75").and_return("3") Nathan Sutton [EMAIL PROTECTED] rspec edge revision 3014 rspec_on_rails edge revision 3014 rails edge revision 8238 On Dec 3, 2007, at 12:33 PM, Sahyoun wrote: > Hello, > > I'm confused why the spec

Re: [rspec-users] Autotest'ing specs on non-rails app

2007-11-30 Thread Nathan Sutton
Yeah, should work, but wanted to note it as I've had endless issues with it on leopard. My boss' growlnotify doesn't work, mine works perfectly since I installed Office 2004, and the forums say it doesn't work at all... Nathan Sutton [EMAIL PROTECTED] rspe

Re: [rspec-users] Autotest'ing specs on non-rails app

2007-11-30 Thread Nathan Sutton
Thought I'd share that growlnotify has issues on leopard, it's touch and go as to if it will work or not. Nathan Sutton [EMAIL PROTECTED] rspec edge revision 3014 rspec_on_rails edge revision 3014 rails edge revision 8238 On Nov 30, 2007, at 11:43 AM, Rick DeNatale wrote: > On

Re: [rspec-users] Creation of spec.opts spec_helper etc

2007-11-22 Thread Nathan Sutton
Dang scott, your website is messed up ;) Also, did you get my email about the rspec shared behaviors with parameters? I won't have time to do it this weekend, so feel free. Nathan Sutton [EMAIL PROTECTED] rspec edge revision 2944 rspec_on_rails edge revision 2944 rails edge revision

Re: [rspec-users] Getting Class in Shared Behaviours

2007-11-22 Thread Nathan Sutton
Bah, I won't have time to do this anytime soon, you can feel free, Scott. Nathan Sutton [EMAIL PROTECTED] rspec edge revision 2944 rspec_on_rails edge revision 2944 rails edge revision 8186 On Nov 21, 2007, at 10:25 PM, Scott Taylor wrote: > > On Nov 21, 2007, at 11:14 PM, Ben

Re: [rspec-users] describe AddressesController, "handling GET /addresses" do

2007-11-22 Thread Nathan Sutton
n(@company) @company.stub!(:addresses) @company.addresses.stub!(:find).with("1").and_return(@address) end end Give that a shot, you might want to make some of those expectations instead of stubs, depending on your style. Nathan Sutton [EMAIL PROTECTED] rspec edge revision 2944

Re: [rspec-users] Getting Class in Shared Behaviours

2007-11-21 Thread Nathan Sutton
Anyone else have any opinions on this? I'd like to get some more input. Thanks, Nathan Sutton [EMAIL PROTECTED] rspec edge revision 2910 rspec_on_rails edge revision 2909 rails edge revision 8175 On Nov 21, 2007, at 4:58 PM, Scott Taylor wrote: > > On Nov 21, 2007, at 5:42 PM, Na

Re: [rspec-users] Getting Class in Shared Behaviours

2007-11-21 Thread Nathan Sutton
Not even sure, what are your thoughts? Nathan Sutton [EMAIL PROTECTED] rspec edge revision 2910 rspec_on_rails edge revision 2909 rails edge revision 8175 On Nov 21, 2007, at 4:31 PM, Scott Taylor wrote: > > On Nov 21, 2007, at 5:16 PM, Nathan Sutton wrote: > >> Ooh, I totally

Re: [rspec-users] Getting Class in Shared Behaviours

2007-11-21 Thread Nathan Sutton
Oh, and the reason I include this is because it's always a question when discussing things, and this makes it always available, both to those reading now and those who may read these conversations in the future. Nathan Sutton [EMAIL PROTECTED] rspec edge revision 2910 rspec_on_rails

Re: [rspec-users] Getting Class in Shared Behaviours

2007-11-21 Thread Nathan Sutton
Yeah, I'm currently doing it manually though, and this email is only for mailing lists. Nathan Sutton [EMAIL PROTECTED] rspec edge revision 2910 rspec_on_rails edge revision 2909 rails edge revision 8175 On Nov 21, 2007, at 4:31 PM, David Chelimsky wrote: > On Nov 21, 2007 4:16 PM

Re: [rspec-users] Getting Class in Shared Behaviours

2007-11-21 Thread Nathan Sutton
Ooh, I totally want to do this, I'll work on it this week along with my other patch i have yet to submit this week, unless Scott is partial to doing it. Do you want it, Scott? Nathan Sutton [EMAIL PROTECTED] rspec edge revision 2910 rspec_on_rails edge revision 2909 rails edge revision

Re: [rspec-users] Getting Class in Shared Behaviours

2007-11-21 Thread Nathan Sutton
convention to define. It still feels hackish, but not nearly as much. Is there another way? Nathan Sutton [EMAIL PROTECTED] rspec edge revision 2910 rspec_on_rails edge revision 2909 rails edge revision 8175 On Nov 21, 2007, at 3:31 PM, aslak hellesoy wrote: > On Nov 21, 2007 10:22 PM, Da

Re: [rspec-users] Getting Class in Shared Behaviours

2007-11-21 Thread Nathan Sutton
David to the rescue! :) Nathan Sutton [EMAIL PROTECTED] rspec edge revision 2910 rspec_on_rails edge revision 2909 rails edge revision 8175 On Nov 21, 2007, at 3:22 PM, David Chelimsky wrote: > On Nov 21, 2007 3:14 PM, Daniel N <[EMAIL PROTECTED]> wrote: >> Hi, >> >&g

Re: [rspec-users] Getting Class in Shared Behaviours

2007-11-21 Thread Nathan Sutton
Did you try self.class ?? Nathan Sutton [EMAIL PROTECTED] rspec edge revision 2910 rspec_on_rails edge revision 2909 rails edge revision 8175 On Nov 21, 2007, at 3:14 PM, Daniel N wrote: > Hi, > > I want to be able to get at the described class in my shared > behaviour. I'

Re: [rspec-users] When you sometimes wonder how to test this??

2007-11-21 Thread Nathan Sutton
ializer or environment. Nathan Sutton [EMAIL PROTECTED] rspec edge revision 2910 rspec_on_rails edge revision 2909 rails edge revision 8175 On Nov 21, 2007, at 2:31 PM, Shane Mingins wrote: Hi Just something that I have been finding very helpful sometimes when I am stuck with "how co

Re: [rspec-users] Testing Models without fixtures

2007-11-20 Thread Nathan Sutton
Ok, if you want to do it messy and uninformed, do it my way. ;) I've heard of Fixture Scenarios but I heard they were broken with edge rspec, but I'll check out Exemplar, ModelStubbing, and FixtureReplacement. Nathan Sutton [EMAIL PROTECTED] rspec edge revision 2910 rspec_on_

Re: [rspec-users] Testing Models without fixtures

2007-11-20 Thread Nathan Sutton
Err, Scenarios Nathan Sutton [EMAIL PROTECTED] rspec edge revision 2910 rspec_on_rails edge revision 2909 rails edge revision 8167 On Nov 20, 2007, at 10:22 AM, Scott Taylor wrote: > > On Nov 20, 2007, at 11:20 AM, David Chelimsky wrote: > >> On Nov 20, 2007 10:20 AM,

Re: [rspec-users] Testing Models without fixtures

2007-11-20 Thread Nathan Sutton
<< ALPHA[rand(52)] end txt # maybe a returning block? can't remember if that works here end def create_user(options={}) User.create!({ :name => random_text, :password => random_text}.merge(options)) end Nathan Sutton [EMA

Re: [rspec-users] Stories and Pending Actions

2007-11-20 Thread Nathan Sutton
Didn't have time tonight, stand-by for something tomorrow. Nathan Sutton [EMAIL PROTECTED] rspec edge revision 2910 rspec_on_rails edge revision 2909 rails edge revision 8167 On Nov 19, 2007, at 11:02 AM, David Chelimsky wrote: > On Nov 19, 2007 11:00 AM, Nathan Sutton <[EMAI

Re: [rspec-users] Stories and Pending Actions

2007-11-19 Thread Nathan Sutton
Perfect, thanks Dave. I can make a patch tonight, if ya want. Nathan Sutton [EMAIL PROTECTED] rspec edge revision 2910 rspec_on_rails edge revision 2909 rails edge revision 8167 On Nov 19, 2007, at 3:23 AM, David Chelimsky wrote: > On Nov 18, 2007 10:57 PM, Nathan Sutton <[EMAIL PRO

[rspec-users] Stories and Pending Actions

2007-11-18 Thread Nathan Sutton
I can't get my plain text stories to show pending actions like the example addition plain text story. Any tips? (See below) http://pastie.caboo.se/119627 Nathan Sutton [EMAIL PROTECTED] rspec edge revision 2910 rspec_on_rails edge revision 2909 rails edge revision

Re: [rspec-users] helper methods starting with should

2007-11-18 Thread Nathan Sutton
0 Should be able to turn on or off. don't know if the first went through. Nathan Sutton [EMAIL PROTECTED] rspec edge revision 2894 rspec_on_rails edge revision 2894 rails edge revision 8146 On Nov 18, 2007, at 9:59 AM, David Chelimsky wrote: > Hi all, > > As an experiment i

Re: [rspec-users] helper methods starting with should

2007-11-18 Thread Nathan Sutton
0 Keep it, but make it a configuration option with default-off. Nathan Sutton [EMAIL PROTECTED] rspec edge revision 2894 rspec_on_rails edge revision 2894 rails edge revision 8146 On Nov 18, 2007, at 9:59 AM, David Chelimsky wrote: > Hi all, > > As an experiment in playing nice wi

Re: [rspec-users] Plain Text Stories Chaining Scenarios

2007-11-16 Thread Nathan Sutton
Very very cool. So while GivenScenario is useful for chaining scenarios, if you want to spec out a process you can also do it this way. Very cool. Nathan Sutton [EMAIL PROTECTED] rspec edge revision 2894 rspec_on_rails edge revision 2894 rails edge revision 8146 On Nov 16, 2007, at 1:03

Re: [rspec-users] Plain Text Stories Chaining Scenarios

2007-11-15 Thread Nathan Sutton
You mentioned on your blog when talking about stories: http://dannorth.net/whats-in-a-story That you can chain events like this: Scenario Given When Then When Then When Then etc... Is this possible in rspec? Nathan Sutton [EMAIL PROTECTED] rspec edge revision 2894 rspec_on_rails edge revision

[rspec-users] How to Run Rails Stories

2007-11-15 Thread Nathan Sutton
I have non non-plain-text story without any steps_for, can it be run? If so, how? Thanks, Nate ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] How to Run Rails Stories

2007-11-15 Thread Nathan Sutton
I was trying to run it from all.rb, but having no luck. I can run them individually. Nathan Sutton [EMAIL PROTECTED] rspec edge revision 2894 rspec_on_rails edge revision 2894 rails edge revision 8146 On Nov 15, 2007, at 5:57 PM, David Chelimsky wrote: > On Nov 15, 2007 4:22 PM, Nat

Re: [rspec-users] Plain Text Stories Chaining Scenarios

2007-11-15 Thread Nathan Sutton
s that any state you set up (@variables, mixins, etc.) are available for the other steps. It's useful for incrementally building up something like a workflow or a state engine. Cheers, Dan On Nov 15, 2007 3:01 AM, Nathan Sutton <[EMAIL PROTECTED]> wrote: I'm writing a plain text

[rspec-users] Plain Text Stories Chaining Scenarios

2007-11-14 Thread Nathan Sutton
I'm writing a plain text story (testing the waters) and I have scenarios that I need to chain in my specs. Here is what I have so far: Story: User purchasing tshirts As a user I want to checkout So that I can purchase shirts Scenario: User goes to checkout with nothing in cart

Re: [rspec-users] ETA to Stories

2007-11-14 Thread Nathan Sutton
Woo, nice docs in there, ha! ;) How is it intended to be used? Thanks, Nate On Nov 14, 2007, at 6:26 PM, John W. Long wrote: > On Nov 14, 2007, at 6:25 PM, Nathan Sutton wrote: >> Hey guys, just poppin in to ask if anyone knows when stories will be >> somewhat stable? We

Re: [rspec-users] RSpec on Rails 2.0

2007-11-14 Thread Nathan Sutton
much better: script/spec spec -fh > spec_doc.html Nate On Nov 14, 2007, at 7:10 PM, Mark McG. wrote: > Mark McG. wrote: >> I have a project on edge rails that I'm trying to convert from >> Test:Unit >> to rspec.I have the rspec gem version 2338, the rspec and >> rsepc_on_rails version 2831

Re: [rspec-users] ETA to Stories

2007-11-14 Thread Nathan Sutton
2007 5:25 PM, Nathan Sutton <[EMAIL PROTECTED]> wrote: >> Hey guys, just poppin in to ask if anyone knows when stories will be >> somewhat stable? > > Are you serious? Stories haven't even been released yet :) > > Realistically, names like Story, Scenario, Given, W

[rspec-users] ETA to Stories

2007-11-14 Thread Nathan Sutton
Hey guys, just poppin in to ask if anyone knows when stories will be somewhat stable? We're starting to use integration tests at work, we're already using rspec, and I'd like to avoid integration tests if possible. Thanks, Nate "fowlduck" Sutton

Re: [rspec-users] Top Quoting?

2007-10-15 Thread Nathan Sutton
> This is especially true in cases where the reply might be two or > three lines long, and the untrimmed quoted message stretches on for > screenfuls. I totally agree, in fact I let most of these conversations just pass by because it's too much work to sift through all the nested quotes. I'd

Re: [rspec-users] RSpec Book(s) on the radar

2007-10-05 Thread Nathan Sutton
I'm all over that like white on rice on a paper plate in a snowstorm. Nate On Oct 5, 2007, at 8:26 AM, David Chelimsky wrote: > On 10/5/07, Cody P. Skidmore <[EMAIL PROTECTED]> wrote: >> I just found this one: http://tinyurl.com/3c3mfa >> >> David, are there any other RSpec books in the works?

[rspec-users] Cookies in RSpec

2007-10-04 Thread Nathan Sutton
So how do you work with cookies properly in rspec now? I noticed in the docs that it mentions session, assigns, and flash, but nothing of cookie. I'm using edge rails so I'm concerned about changes to the cookie mechanisms. I need to assign values into the cookie (a remember token for re

Re: [rspec-users] Specs and Libs

2007-10-04 Thread Nathan Sutton
On Oct 4, 2007, at 6:24 AM, David Chelimsky wrote: > On 10/4/07, Nathan Sutton <[EMAIL PROTECTED]> wrote: >> How would I go about writing specs for a lib, particularly one with >> all protected and private methods. I'm trying to spec the >> Authentica

[rspec-users] Specs and Libs

2007-10-04 Thread Nathan Sutton
How would I go about writing specs for a lib, particularly one with all protected and private methods. I'm trying to spec the AuthenticatedSystem library from the rails restful_authentication plugin: http://pastie.caboo.se/103625 Also, when you're mocking objects, a side-effect is helping y

[rspec-users] View-Driven-Development by Behavior-Driven-Development and RSpec

2007-07-28 Thread Nathan Sutton
One of the things that turned me on to BDD and RSpec was speccing views first, that the desired end would drive the development. In previous projects while using Test::Unit I would try to make educated guesses as to what would be needed in the model and controllers to derive the view witho