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
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
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
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
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
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?
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
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.
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
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
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
11 matches
Mail list logo