Re: [rspec-users] .html.erb files and autotest

2008-01-13 Thread Nathan Sutton
Awesome David, yeah I was quite surprised that verbose was on by default in 3.7.2. Nathan Sutton [EMAIL PROTECTED] rspec 1.1 rspec_on_rails 1.1 rails 2.0.2 On Jan 13, 2008, at 9:33 PM, David Chelimsky wrote: > On Jan 13, 2008 9:14 PM, Corey Haines <[EMAIL PROTECTED]> wrote: >> Awesome! That wo

Re: [rspec-users] .html.erb files and autotest

2008-01-13 Thread Corey Haines
Okay. Thanks for the help, guys. I'm back on track! On Jan 13, 2008 10:33 PM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Jan 13, 2008 9:14 PM, Corey Haines <[EMAIL PROTECTED]> wrote: > > Awesome! That worked perfectly, Nathan! Thanks. > > There will soon (like in the next day or two I think)

Re: [rspec-users] .html.erb files and autotest

2008-01-13 Thread David Chelimsky
On Jan 13, 2008 9:14 PM, Corey Haines <[EMAIL PROTECTED]> wrote: > Awesome! That worked perfectly, Nathan! Thanks. There will soon (like in the next day or two I think) be a ZenTest release which will make setting $VERBOSE obsolete. By default you won't get the Dunno messages, but you can choose t

Re: [rspec-users] .html.erb files and autotest

2008-01-13 Thread Corey Haines
Awesome! That worked perfectly, Nathan! Thanks. -Corey On Jan 13, 2008 10:11 PM, Nathan Sutton <[EMAIL PROTECTED]> wrote: > Set $VERBOSE=false in your .autotest file in your home directory. > Nathan Sutton > [EMAIL PROTECTED] > rspec 1.1 > rspec_on_rails 1.1 > rails 2.0.2 > > On Jan 13, 2008, at

Re: [rspec-users] .html.erb files and autotest

2008-01-13 Thread Nathan Sutton
Set $VERBOSE=false in your .autotest file in your home directory. Nathan Sutton [EMAIL PROTECTED] rspec 1.1 rspec_on_rails 1.1 rails 2.0.2 On Jan 13, 2008, at 9:10 PM, Corey Haines wrote: I get this Dunno! app/views/coupon/index.html.erb On Jan 13, 2008 5:29 PM, Corey Haines <[EMAIL PROTEC

Re: [rspec-users] .html.erb files and autotest

2008-01-13 Thread Corey Haines
I get this Dunno! app/views/coupon/index.html.erb On Jan 13, 2008 5:29 PM, Corey Haines <[EMAIL PROTECTED]> wrote: > Okay, thanks. > > > On Jan 13, 2008 4:54 PM, David Chelimsky <[EMAIL PROTECTED]> wrote: > > > On Jan 13, 2008 3:51 PM, Corey Haines <[EMAIL PROTECTED]> wrote: > > > When I work

Re: [rspec-users] How to trace running spec

2008-01-13 Thread Kero van Gelder
> > I have a spec that is hanging when it is running. > > > > How do I get the rspec runner to show what specs it's running so I can > > which one is hanging? I am calling the runner from my rails project. > > Which formatter ate you using? If you use the specdoc formatter it will > output the

Re: [rspec-users] TextMate bundle not compatible with nested specs for running focused tests?

2008-01-13 Thread David Chelimsky
On Jan 13, 2008 5:47 PM, Matthew Windwer <[EMAIL PROTECTED]> wrote: > Seems like the recently updated (and wonderful) textmate bundle does not > take into account running individual tests that are in nested specs. > > Anybody else notice this? Any ideas? There's an open ticket on this at the light

Re: [rspec-users] TextMate bundle not compatible with nested specs for running focused tests?

2008-01-13 Thread aslak hellesoy
On Jan 14, 2008 12:47 AM, Matthew Windwer <[EMAIL PROTECTED]> wrote: > Seems like the recently updated (and wonderful) textmate bundle does not > take into account running individual tests that are in nested specs. > > Anybody else notice this? Any ideas? > I have noticed it too. Please file a bug

[rspec-users] TextMate bundle not compatible with nested specs for running focused tests?

2008-01-13 Thread Matthew Windwer
Seems like the recently updated (and wonderful) textmate bundle does not take into account running individual tests that are in nested specs. Anybody else notice this? Any ideas? Matt ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforg

Re: [rspec-users] .html.erb files and autotest

2008-01-13 Thread Corey Haines
Okay, thanks. On Jan 13, 2008 4:54 PM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Jan 13, 2008 3:51 PM, Corey Haines <[EMAIL PROTECTED]> wrote: > > When I work with a .html.erb file, the autotest rspec on rails stuff > doesn't > > understand the file to map it to the right test. I wanted to

Re: [rspec-users] .html.erb files and autotest

2008-01-13 Thread David Chelimsky
On Jan 13, 2008 3:51 PM, Corey Haines <[EMAIL PROTECTED]> wrote: > When I work with a .html.erb file, the autotest rspec on rails stuff doesn't > understand the file to map it to the right test. I wanted to submit a patch > for this, but I'm unsure where the specs would be to update. I found the >

[rspec-users] .html.erb files and autotest

2008-01-13 Thread Corey Haines
When I work with a .html.erb file, the autotest rspec on rails stuff doesn't understand the file to map it to the right test. I wanted to submit a patch for this, but I'm unsure where the specs would be to update. I found the necessary mapping in rspec_autotest.rb, but I can't find any specs anywhe

Re: [rspec-users] How to trace running spec

2008-01-13 Thread Ben Mabey
Ben Greenberg wrote: > Hey all, > > I have a spec that is hanging when it is running. > > How do I get the rspec runner to show what specs it's running so I can > which one is hanging? I am calling the runner from my rails project. > > Thanks, > Ben > _

Re: [rspec-users] autotest displays no output

2008-01-13 Thread Mike Vogel
There is also a problem with spaces in the file path to ruby or the spec files when running on windows. A quick dumb fix: - change the return result of the ruby method of autotest.rb def ruby ruby = File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name

[rspec-users] How to trace running spec

2008-01-13 Thread Ben Greenberg
Hey all, I have a spec that is hanging when it is running. How do I get the rspec runner to show what specs it's running so I can which one is hanging? I am calling the runner from my rails project. Thanks, Ben ___ rspec-users mailing list rspec-user

Re: [rspec-users] View spec'ing style

2008-01-13 Thread Corey Haines
I don't have a lot of experience yet with the view spec'ing, but I do have the first way I will start: Spec a view from the outermost level and Treat extracted partials as a hybrid of "Extract Method" and "Extract Class" This means that I would spec out the top-most view, extract a partial to remo

[rspec-users] View spec'ing style

2008-01-13 Thread Kevin Olbrich
I've been getting my head around view spec'ing lately for a fairly complex project that makes heavy use of partials in views and I have hit up against a style puzzle. I see two strategies for spec'ing views: First: Develop detailed specs for each partial and then make sure that the final view e

Re: [rspec-users] Role of stories vs specs, revisited

2008-01-13 Thread Jay Donnell
> Jay - are you familiar with Acceptance Test Driven > Development/Planning and/or Test Driven Development? I am with TDD and Acceptance testing (not sure if this is the same as Acceptance Test Driven Development) . I use a more classic approach to use Martin Fowler's terminology which is why I

Re: [rspec-users] should_receive twice and arguments

2008-01-13 Thread Ivo Dancet
Ok, found the problem after trying to make an example: I forgot to add a stub! to accept the second call to create! I didn't find it sooner because the error was: Mock 'Class' expected :create! with ({:name=>"foo"}) but received it with ({:name=>"foo2"}) And it did get it with ({:name => "fo

Re: [rspec-users] should_receive twice and arguments

2008-01-13 Thread David Chelimsky
On Jan 13, 2008 6:56 AM, Ivo Dancet <[EMAIL PROTECTED]> wrote: > Hi all, I have a method calling Klass.create! two times with different > arguments (this happens in a class reponsable for reading in a csv file) > > I want to test those like this: > > in one test: Klass.should_receive(:create!).with

[rspec-users] should_receive twice and arguments

2008-01-13 Thread Ivo Dancet
Hi all, I have a method calling Klass.create! two times with different arguments (this happens in a class reponsable for reading in a csv file) I want to test those like this: in one test: Klass.should_receive(:create!).with(:name => "foo").once in another: Klass.should_receive(:create!).with(:

Re: [rspec-users] Role of stories vs specs, revisited

2008-01-13 Thread David Chelimsky
On Jan 12, 2008 8:35 PM, Jay Donnell <[EMAIL PROTECTED]> wrote: > >because if you have integration tests covering everything, > >then you'll know pretty quickly when your tests aren't up to par. > > If we have integration tests that cover everything then why have another set > of tests? At that po