Re: [rspec-users] Acts as Authenticated

2007-06-30 Thread court3nay
also see the caboose sample app for a complete integration of acts as auth with rspec. Courtenay Sent from my iPhone On Jun 30, 2007, at 8:09 AM, "aslak hellesoy" <[EMAIL PROTECTED]> wrote: > On 6/26/07, Anonymous <[EMAIL PROTECTED]> wrote: >> I am using Acts as Authenticated and I

Re: [rspec-users] Mocking Rails association collections

2007-07-18 Thread court3nay
Any chance of some prettier syntax for that? --- Courtenay On Jul 18, 2007, at 2:30 PM, "David Chelimsky" <[EMAIL PROTECTED]> wrote: > On 7/18/07, Paul <[EMAIL PROTECTED]> wrote: >> Rails model association collections allow you to do nifty things >> like: >> >> article.comments.find(:al

Re: [rspec-users] Mocking Rails association collections

2007-07-18 Thread court3nay
Any chance of some prettier syntax for that? --- Courtenay On Jul 18, 2007, at 2:30 PM, "David Chelimsky" <[EMAIL PROTECTED]> wrote: > On 7/18/07, Paul <[EMAIL PROTECTED]> wrote: >> Rails model association collections allow you to do nifty things >> like: >> >> article.comments.find(:all

Re: [rspec-users] Caboosers drop RSpec

2008-11-04 Thread court3nay
On Nov 4, 5:25 am, "aslak hellesoy" <[EMAIL PROTECTED]> wrote: > On Tue, Nov 4, 2008 at 10:39 AM, Tom Stuart <[EMAIL PROTECTED]> wrote: > > Hi, > > > Any responses to > >http://blog.caboo.se/articles/2008/11/4/we-ve-stopped-using-rspec? How much > > of this is due to legitimate bugs/problems versus

[rspec-users] Weird bug in association extensions

2009-05-09 Thread court3nay
Hey all, just upgraded an older app to latest rspec and rails. This code runs fine in console but fails under rspec. class User has_many :statuses, :extend => Status:::AssociationExtension end module Status::AssociationExtensions def after(status) find(:first, :con

[rspec-users] Running single spec files -- how?

2009-05-11 Thread court3nay
Before upgrading from 1.1.11 to 1.2.4 I used to be able to do this: ruby spec/models/user_spec.rb Now it looks like you have to do script/spec spec/models/user_spec.rb Or something like this, which is actually kinda cool: script/spec spec/*/user* Is that correct? Am I missing something?

Re: [rspec-users] Rails' fixtures suck! But what about something like this?

2007-07-22 Thread court3nay
Please see http://dev.rubyonrails.org/tickets/6424 for further code on fixtures and foreign keys. You might also be interested in the ar_fixtures plugin from topfunky to dump fixtures from dev to yaml. In most cases I'm using mocks and stubbing rather than canned data. Its much easier IMO t

Re: [rspec-users] Any liberally-licensed open source projects out there that make good use of RSpec?

2007-07-30 Thread court3nay
Caboose Sample app --- Courtenay On Jul 30, 2007, at 7:48 PM, "Obie Fernandez" <[EMAIL PROTECTED]> wrote: > I'm trolling for example RSpec code. Any pointers appreciated. > > Cheers, > Obie > ___ > rspec-users mailing list > rspec-users@rubyforge.

Re: [rspec-users] using restful_authentication current_user inside controller specs

2007-08-21 Thread court3nay
controller.stub!:(current_user).and_return(@user) --- Courtenay On Aug 20, 2007, at 10:32 PM, "Andrew WC Brown" <[EMAIL PROTECTED]> wrote: > I'm using restful_authentication in my app and I have the before > filters in my application rhtml: > > before_filter :login_required > around_fil

Re: [rspec-users] Invite from Ben Askins ([EMAIL PROTECTED])

2007-09-03 Thread court3nay
Hey! That's private! :) its also OSS and very test::unit Sent from my iPhone On Sep 3, 2007, at 9:22 PM, "Andrew WC Brown" <[EMAIL PROTECTED]> wrote: What about Caboose Facebook? http://faces.caboo.se On 9/4/07, Ben Mabey < [EMAIL PROTECTED]> wrote: Hmm... maybe it was somehow speced out

Re: [rspec-users] I lost the RSpec fight

2007-09-16 Thread court3nay
Test/spec + mocha On Sep 16, 2007, at 8:44 AM, "Pat Maddox" <[EMAIL PROTECTED]> wrote: > On 9/16/07, Jay Levitt <[EMAIL PROTECTED]> wrote: >> I've been working on a Rails project with one other developer; he was >> using Test::Unit, and I was using RSpec. That works OK for a >> while, but >> o