[rspec-users] is there a plain format output for stories?

2008-07-07 Thread Jim Morris
When running a lot of stories from a script it would be nice to have the plain format of dots rather than the verbose story descriptions. Is there a way to do this? I tried -f p but it ignored it. Thanks -- Jim Morris, http://blog.wolfman.com ___ rsp

Re: [rspec-users] Not sure why this controller spec isn't working

2008-07-07 Thread Tiffani Ashley Bell
Whoops..wrong post. should be post :create, :organization_id => @organization.id, :new_note => { :body => "" } Copying from the wrong window... Tiffani AB On Tue, Jul 8, 2008 at 12:14 AM, Tiffani Ashley Bell <[EMAIL PROTECTED]> wrote: > Yeah, I was on 1.1.4 and this solution with a few tweaks

Re: [rspec-users] Not sure why this controller spec isn't working

2008-07-07 Thread Tiffani Ashley Bell
Yeah, I was on 1.1.4 and this solution with a few tweaks definitely worked. The original set up of my code called for having the Organization returned by the notes controller in a before filter, so I stubbed out this stuff in the before(:each) block. It ended up looking like this: before(:each) d

Re: [rspec-users] Is BDD with RSpec cheaper?

2008-07-07 Thread Alex Satrapa
On 08/07/2008, at 04:25 , yitzhakbg wrote: Just had a discussion with a prospective employer, a Ruby On Rails shop. His reaction to BDD development on every project was skeptical, saying something like: "It depends on the project". "Some jobs are so short that the extra time invested in de

Re: [rspec-users] Is BDD with RSpec cheaper?

2008-07-07 Thread Korny Sietsma
I met a great analogy the other day - applies to TDD as well as BDD really. Unit testing is like double-entry book-keeping. It takes longer to do the initial work, and yes you have some repetition - but the reduction in errors saves you time and money overall. I'm struggling to think of a projec

Re: [rspec-users] Is BDD with RSpec cheaper?

2008-07-07 Thread Anthony Broad-Crawford
Interesting statement that I have heard several times before, and it all boils down to how one measures cost. If you measure the cost of an application only in the time it takes to write the first line of code to the last line of code for the first and only release, then yes, you could arg

Re: [rspec-users] Not sure why this controller spec isn't working

2008-07-07 Thread Craig Demyanovich
I'm assuming RSpec 1.1.3+, but here's how I might write this example: describe NotesController do it "renders 'notes/new' when an empty note is submitted" do Note.stub!(:new).and_return(stub("note")) organization = stub_model(Organization, :notes => stub("notes", :<< => false)) assig

Re: [rspec-users] Is BDD with RSpec cheaper?

2008-07-07 Thread Scott Taylor
On Jul 7, 2008, at 2:25 PM, yitzhakbg wrote: This might be a loaded question on this forum, but here goes: Just had a discussion with a prospective employer, a Ruby On Rails shop. His reaction to BDD development on every project was skeptical, saying something like: "It depends on the proj

Re: [rspec-users] Not sure why this controller spec isn't working

2008-07-07 Thread Tiffani Ashley Bell
Hmmm...I made the changes that both you and Britt suggested and still no dice. I broke it down and put print statements (yeesh) in the controller around the @organization.notes << @new_note statement. This confirms that the statement returns false just like the stub told it to do (so I took out

Re: [rspec-users] Not sure why this controller spec isn't working

2008-07-07 Thread Zach Dennis
On Mon, Jul 7, 2008 at 5:55 PM, Britt Mileshosky <[EMAIL PROTECTED]> wrote: > > > > > Date: Mon, 7 Jul 2008 17:27:36 -0400 > > From: [EMAIL PROTECTED] > > To: rspec-users@rubyforge.org > > Subject: [rspec-users] Not sure why this controller spec isn't working > > >

Re: [rspec-users] Not sure why this controller spec isn't working

2008-07-07 Thread Britt Mileshosky
> Date: Mon, 7 Jul 2008 17:27:36 -0400 > From: [EMAIL PROTECTED] > To: rspec-users@rubyforge.org > Subject: [rspec-users] Not sure why this controller spec isn't working > > Hey folks, > > I've been mocking and stubbing pretty nicely after the various bits of ad

[rspec-users] Not sure why this controller spec isn't working

2008-07-07 Thread Tiffani Ashley Bell
Hey folks, I've been mocking and stubbing pretty nicely after the various bits of advice I received earlier about doing so. I've come to bits of code that work in one place and not in another, though. I'm hoping it's not something simple I've missed. The code below fails even though code that i

Re: [rspec-users] Is BDD with RSpec cheaper?

2008-07-07 Thread yitzhakbg
Thanks very much. -- View this message in context: http://www.nabble.com/Is-BDD-with-RSpec-cheaper--tp18323328p18326878.html Sent from the rspec-users mailing list archive at Nabble.com. ___ rspec-users mailing list rspec-users@rubyforge.org http://r

Re: [rspec-users] Colorize story output

2008-07-07 Thread Paolo Donà
Wow cool, I feel so stupid now :-) So, after one hour in the closet I would ask: how to plug the growl stuff in? Paolo On Mon, Jul 7, 2008 at 8:34 PM, Ben Mabey <[EMAIL PROTECTED]> wrote: > Paolo Donà wrote: >> >> Hi guys, >> running large story files I started missing the red/green output of my

Re: [rspec-users] Trouble with Association Proxies and new/create in rails

2008-07-07 Thread Rick DeNatale
On Mon, Jul 7, 2008 at 2:28 AM, Sam Granieri, Jr <[EMAIL PROTECTED]> wrote: > I'm working on some code that uses association proxies. I'm trying to get > away from using fixtures, and move more to mocking and stubbing. So far, so > good, but the methods I cant figure out, even with extensive googl

Re: [rspec-users] Is BDD with RSpec cheaper?

2008-07-07 Thread Ben Mabey
yitzhakbg wrote: This might be a loaded question on this forum, but here goes: Just had a discussion with a prospective employer, a Ruby On Rails shop. His reaction to BDD development on every project was skeptical, saying something like: "It depends on the project". "Some jobs are so short that

Re: [rspec-users] Colorize story output

2008-07-07 Thread Ben Mabey
Paolo Donà wrote: Hi guys, running large story files I started missing the red/green output of my specs. Thus I wrote a small script you can pipe the story output to, in order to 'colorize' it.. so instead of: $ ./stories/all.rb you

Re: [rspec-users] Is BDD with RSpec cheaper?

2008-07-07 Thread Lori M Olson
On 7-Jul-08, at 12:25 PM, yitzhakbg wrote: This might be a loaded question on this forum, but here goes: Just had a discussion with a prospective employer, a Ruby On Rails shop. His reaction to BDD development on every project was skeptical, saying something like: "It depends on the projec

Re: [rspec-users] Is BDD with RSpec cheaper?

2008-07-07 Thread Avdi Grimm
On Mon, Jul 7, 2008 at 2:25 PM, yitzhakbg <[EMAIL PROTECTED]> wrote: > > This might be a loaded question on this forum, but here goes: > Just had a discussion with a prospective employer, a Ruby On Rails shop. His > reaction to BDD development on every project was skeptical, saying something > like

[rspec-users] Colorize story output

2008-07-07 Thread Paolo Donà
Hi guys, running large story files I started missing the red/green output of my specs. Thus I wrote a small scriptyou can pipe the story output to, in order to 'colorize' it.. so instead of: $ ./stories/all.rb you can say: $ ./stories/al

Re: [rspec-users] auto-generated descriptions

2008-07-07 Thread David Chelimsky
On Jul 7, 2008, at 1:47 PM, Ashley Moran wrote: On Jul 04, 2008, at 9:45 pm, David Chelimsky wrote: I'm looking for ways to optimize rspec and came upon something interesting. If I remove handling for auto-generated descriptions (the thing that allows you to say "specify { 5.should == 5 }"

Re: [rspec-users] auto-generated descriptions

2008-07-07 Thread Ashley Moran
On Jul 04, 2008, at 9:45 pm, David Chelimsky wrote: I'm looking for ways to optimize rspec and came upon something interesting. If I remove handling for auto-generated descriptions (the thing that allows you to say "specify { 5.should == 5 }" with no description string) we get an average 3

[rspec-users] Is BDD with RSpec cheaper?

2008-07-07 Thread yitzhakbg
This might be a loaded question on this forum, but here goes: Just had a discussion with a prospective employer, a Ruby On Rails shop. His reaction to BDD development on every project was skeptical, saying something like: "It depends on the project". "Some jobs are so short that the extra time inv

Re: [rspec-users] auto-generated descriptions

2008-07-07 Thread Zach Dennis
On Fri, Jul 4, 2008 at 10:18 PM, Steve Eley <[EMAIL PROTECTED]> wrote: > On Fri, Jul 4, 2008 at 4:45 PM, David Chelimsky <[EMAIL PROTECTED]> > wrote: > > > > So - how bad do you think this would suck to remove that feature? Are you > > using it yourself? > > I'm not, but would it be impractical to