Re: [rspec-users] noob question for getting true or false from a function

2008-04-28 Thread David Chelimsky
On Apr 29, 2008, at 12:59 AM, Patrick Aljord wrote: Hey all, I have an action that looks like this: def create if using_open_id? open_id_authentication(params[:openid_url]) else password_authentication(params[:email], params[:password]) end end I have a spec that looks li

[rspec-users] noob question for getting true or false from a function

2008-04-28 Thread Patrick Aljord
Hey all, I have an action that looks like this: def create if using_open_id? open_id_authentication(params[:openid_url]) else password_authentication(params[:email], params[:password]) end end I have a spec that looks like this: it "should login and redirect" do

Re: [rspec-users] ANN: RSpactor 0.9.10 (aka. beta)

2008-04-28 Thread Chad Humphries
Very cool, I'll try it out tomorrow. -- Chad On Mon, Apr 28, 2008 at 8:08 PM, Corey Haines <[EMAIL PROTECTED]> wrote: > I'm using rspactor now over autotest. I'll give the beta a shot. > > -Corey > > > > On Mon, Apr 28, 2008 at 3:51 PM, rubyphunk <[EMAIL PROTECTED]> wrote: > > > Hey all. > > > >

Re: [rspec-users] ANN: RSpactor 0.9.10 (aka. beta)

2008-04-28 Thread Zach Dennis
Just put a directory path to a project in the text field, and click Run. It will do the rest as far as I can tell, Zach On Mon, Apr 28, 2008 at 8:46 PM, Corey Haines <[EMAIL PROTECTED]> wrote: > Well, I got it running (seemingly), but I'm not 100% sure how to use it. > -Corey > > > On Mon, Apr 28

Re: [rspec-users] ANN: RSpactor 0.9.10 (aka. beta)

2008-04-28 Thread Corey Haines
Well, I got it running (seemingly), but I'm not 100% sure how to use it. -Corey On Mon, Apr 28, 2008 at 8:08 PM, Corey Haines <[EMAIL PROTECTED]> wrote: > I'm using rspactor now over autotest. I'll give the beta a shot. > -Corey > > > On Mon, Apr 28, 2008 at 3:51 PM, rubyphunk <[EMAIL PROTECTED]>

Re: [rspec-users] Running spec_server

2008-04-28 Thread Scott Taylor
On Apr 28, 2008, at 11:42 AM, Olivier Dupuis wrote: Hi Scott, I'm having no trouble running script/generate rspec. I'm using the CURRENT version of rspec and rspec_on_rails. I just reinstalled them last week. Any idea what could be causing this? No idea. What is line 9 of script/sp

Re: [rspec-users] ANN: RSpactor 0.9.10 (aka. beta)

2008-04-28 Thread Corey Haines
I'm using rspactor now over autotest. I'll give the beta a shot. -Corey On Mon, Apr 28, 2008 at 3:51 PM, rubyphunk <[EMAIL PROTECTED]> wrote: > Hey all. > > I've just release a first preview/beta of the upcoming RSpactor.app; a > spec runner for Mac OS X Leopard. This is just some kind of test >

Re: [rspec-users] story runner on restful_authentication question

2008-04-28 Thread Bart Zonneveld
On 28 apr 2008, at 17:31, steven shingler wrote: When "the user logs in with username and password" do post "/sessions/create", :user => { :login => @username, :password => @password } end Try post_via_redirect... greetz, bartz ___ rspec-users

[rspec-users] ANN: RSpactor 0.9.10 (aka. beta)

2008-04-28 Thread rubyphunk
Hey all. I've just release a first preview/beta of the upcoming RSpactor.app; a spec runner for Mac OS X Leopard. This is just some kind of test version and I'm looking for people who love to sit on the edge :) I need some help to find bugs and polish the interface/interaction. RSpactor is basica

Re: [rspec-users] story runner on restful_authentication question

2008-04-28 Thread Andy Watts
Assuming there's nothing helpful in test.log.. Adding 'debugger' to the misfiring steps may help troubleshoot this.. You'll prolly need to add the following to your helper.rb first. require 'rubygems' require 'ruby-debug' Re-run the story and it should stop at the debugger. Between manually s

Re: [rspec-users] story runner on restful_authentication question

2008-04-28 Thread Pat Maddox
On Mon, Apr 28, 2008 at 8:31 AM, steven shingler <[EMAIL PROTECTED]> wrote: > However, I'm getting a > Spec::Expectations::ExpectationNotMetError: expected redirect to "/", > got no redirect Often when this happens, it's because an error occurs in the request. You can tail test.log to see if t

Re: [rspec-users] Running spec_server

2008-04-28 Thread Olivier Dupuis
Hi Scott, I'm having no trouble running script/generate rspec. I'm using the CURRENT version of rspec and rspec_on_rails. I just reinstalled them last week. Any idea what could be causing this? Thank you Olivier Dupuis On Sat, Apr 26, 2008 at 12:15 AM, Scott Taylor < [EMAIL PROTECTED]> wrote

[rspec-users] story runner on restful_authentication question

2008-04-28 Thread steven shingler
Hi all, Have been following: http://www.tomtenthij.co.uk/2008/1/25/rspec-plain-text-story-runner-on-a-fresh-rails-app ..as an introduction into the story runner. It shows how to get a couple of scenarios going to test the restful_authenticated plugin from plain text stories. I thought I'd go comp

Re: [rspec-users] BDD/Rails/Shoulda

2008-04-28 Thread Matthew Lins
Thanks for all of the great replies! This thread answered a lot of my questions. -Matt > From: David Chelimsky <[EMAIL PROTECTED]> > Reply-To: rspec-users > Date: Mon, 28 Apr 2008 01:17:17 -0500 > To: rspec-users > Subject: Re: [rspec-users] BDD/Rails/Shoulda > > > On Apr 24, 2008, at 5:57

[rspec-users] article on template for stories

2008-04-28 Thread David Chelimsky
Mike Cohn just wrote a nice post justifying what has become the preferred template for stories in BDD: As a [ role ] I want [ feature ] So that [ benefit ] http://blog.mountaingoatsoftware.com/?p=24 ___ rspec-users mailing list rspec-users@rubyforge.