Re: [rspec-users] Specs and Libs

2007-10-09 Thread Eivind Uggedal
> > 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 > > > AuthenticatedSystem library from the rails restful_authentication > > > plugin: > > > http://pas

Re: [rspec-users] Specs and Libs

2007-10-05 Thread Andrew WC Brown
AuthenticatedSystem library has tests already written for it. Just as Jim said you needn't write specs for it. But if you did want to write spec's for the AuthenticatedSystem then you'd create a directory inside the plugin directory with all the other directory and files pointing the paths to the

Re: [rspec-users] Specs and Libs

2007-10-05 Thread James Deville
Since it's a plugin, then I would not spec it, and spec the files that use it instead. Jim Deville 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

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 >> AuthenticatedSystem library from the rails restful_authe

Re: [rspec-users] Specs and Libs

2007-10-04 Thread David Chelimsky
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 > AuthenticatedSystem library from the rails restful_authentication > plugin: > http://pastie.caboo.se/103625 I th

[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