Re: [rspec-users] [cucumber] Cucumber and Chronic

2009-03-07 Thread Mark Wilden
On Sun, Mar 1, 2009 at 11:07 AM, Mark Wilden wrote: > > Just be careful when when basing durations from "now" that daylight > savings time doesn't affect anything. Like it did today, when two specs that used 'Time.now.advance(:hours => 24).utc' started failing. ///ark ___

Re: [rspec-users] what has RSpec got against stack traces?

2009-03-07 Thread Pat Maddox
On Mar 7, 2009, at 5:49 AM, Phlip wrote: Scott Taylor wrote: Go and file a bug report then, but if you only give this level of detail, the bug will never get fixed. I am not reporting any bug in RSpec. Read the Subject line. I think I know why RSpec has an option (-b) to turn off incomplet

Re: [rspec-users] rspec, rspec-rails 1.1.99-12 and script/spec 'no such file to load -- spec'

2009-03-07 Thread David Chelimsky
On Sat, Mar 7, 2009 at 8:50 AM, David Chelimsky wrote: > On Fri, Mar 6, 2009 at 4:02 PM, rockrep wrote: >> Hi David, all: >> >> I just recently upgraded to Rails 2.3.1RC2 (Mac OS.X 10.5.6, ruby >> 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9])  and have been >> dilligently following the instruc

Re: [rspec-users] rspec, rspec-rails 1.1.99-12 and script/spec 'no such file to load -- spec'

2009-03-07 Thread David Chelimsky
On Fri, Mar 6, 2009 at 4:02 PM, rockrep wrote: > Hi David, all: > > I just recently upgraded to Rails 2.3.1RC2 (Mac OS.X 10.5.6, ruby > 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9])  and have been > dilligently following the instructions for upgrading rspec and rspec- > rails according to:   >

Re: [rspec-users] Trouble with (Rails) Nested Model Directories

2009-03-07 Thread David Chelimsky
On Sat, Mar 7, 2009 at 12:01 AM, mudphone wrote: > David, > > Thanks for your help and for setting me straight.  I am running Rails > 2.2.2 and rspec 1.1.12. > > I started a new Rails project as well, and have discovered that my > problem is that I have root-level model class, with the same name a

Re: [rspec-users] Trouble with (Rails) Nested Model Directories

2009-03-07 Thread mudphone
David, Thanks for your help and for setting me straight. I am running Rails 2.2.2 and rspec 1.1.12. I started a new Rails project as well, and have discovered that my problem is that I have root-level model class, with the same name as the nested directory. It looks like this: app/models/thing

Re: [rspec-users] have_tag + quantity - question

2009-03-07 Thread MAwiniarski
Thanks. On 6 Mar, 23:42, Pat Nakajima wrote: > I've posted it on this list before, but if you're writing view tests, check > out > Elementor:http://pivotallabs.com/users/patn/blog/articles/608-better-view-testi > It provides a much cleaner way of asserting on markup, and doesn't require > yo

[rspec-users] rspec, rspec-rails 1.1.99-12 and script/spec 'no such file to load -- spec'

2009-03-07 Thread rockrep
Hi David, all: I just recently upgraded to Rails 2.3.1RC2 (Mac OS.X 10.5.6, ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9]) and have been dilligently following the instructions for upgrading rspec and rspec- rails according to: http://wiki.github.com/dchelimsky/rspec/rails-with-rspec-gems

Re: [rspec-users] what has RSpec got against stack traces?

2009-03-07 Thread Phlip
script/spec -b /path/to/spec.rb will give a full backtrace. You can also add --backtrace to your spec.opts. Cheers, Chris Yay! txkbye! ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] what has RSpec got against stack traces?

2009-03-07 Thread Phlip
Scott Taylor wrote: Go and file a bug report then, but if you only give this level of detail, the bug will never get fixed. I am not reporting any bug in RSpec. Read the Subject line. I think I know why RSpec has an option (-b) to turn off incomplete stack traces. The various Ruby editors ha

Re: [rspec-users] Writing specs for AMQP clients.

2009-03-07 Thread Alexis Richardson
Bira, and Ben, Bira wrote: > David and Ben, > > Thank you very much for your advice :). Hi, Alexis here from RabbitMQ. +1 to what Ben said. Ben - that's a really nice project you've set up there Ben. Could you introduce it on the rabbitmq-discuss list some time perhaps? Bira - may I leave y

Re: [rspec-users] what has RSpec got against stack traces?

2009-03-07 Thread Tero Tilus
2009-03-07 01:17, Phlip: > So the question becomes: Why do we sometimes get the correct stack > trace and sometimes we don't? What do you mean by "correct"? To my knowledge you havent posted any single somehow incorrect stack trace. If you by "correct" mean "complete", I dare to ask if you do sc

Re: [rspec-users] what has RSpec got against stack traces?

2009-03-07 Thread Tero Tilus
2009-03-07 01:12, Phlip: > Test::Unit::TestCase said the error was ~20 layers deeper - but > exactly below the same to_xml() call as RSpec indicated. RSpec threw > the stack trace away. You could have told that right away. :-/ It seems I cant reproduce the trace mangling. Do have steps to repro

Re: [rspec-users] what has RSpec got against stack traces?

2009-03-07 Thread Scott Taylor
Phlip wrote: Tero Tilus wrote: Line 192 contains neither a stray nil nor a method 'macro'. So what exactly _is_ there? Do you know that particular line causes (or noes not cause) the error? Test::Unit::TestCase said the error was ~20 layers deeper - but exactly below the same to_xml() c

Re: [rspec-users] what has RSpec got against stack traces?

2009-03-07 Thread Phlip
Nope. Try 1/0 inside a sub-method - you won't get a stack trace to it, right? Usually it does: >> def foo >> 1/0 >> end => nil >> def bar >> foo >> end => nil >> bar ZeroDivisionError: divided by 0 from (irb):43:in `/' from (irb):43:in `foo' from (irb):46:in `bar' fr

Re: [rspec-users] what has RSpec got against stack traces?

2009-03-07 Thread Phlip
def really_div_by_zero 1/0 end def div_by_zero really_div_by_zero end it 'should trace my stack' do div_by_zero end And that hits the correct line: ZeroDivisionError in 'Whatever should trace my stack' divided by 0 spec/blog_mind_map_spec.rb:192:in `/' spec/blog_mind_ma

Re: [rspec-users] what has RSpec got against stack traces?

2009-03-07 Thread Chris McGrath
On Sat, Mar 7, 2009 at 8:25 AM, Scott Taylor wrote: > Phlip wrote: The question is why did RSpec throw away the backtrace? Am I the first person in history to hit a programming error inside RSpec?? script/spec -b /path/to/spec.rb will give a full backtrace. You can also add --backt

Re: [rspec-users] what has RSpec got against stack traces?

2009-03-07 Thread Phlip
Tero Tilus wrote: Line 192 contains neither a stray nil nor a method 'macro'. So what exactly _is_ there? Do you know that particular line causes (or noes not cause) the error? Test::Unit::TestCase said the error was ~20 layers deeper - but exactly below the same to_xml() call as RSpec i

Re: [rspec-users] what has RSpec got against stack traces?

2009-03-07 Thread Scott Taylor
Phlip wrote: The question is why did RSpec throw away the backtrace? Am I the first person in history to hit a programming error inside RSpec?? Nope, but this probably isn't one of them. I said it wrong. The complete venting goes "Am I the first person in history to use RSpec, and then hit

Re: [rspec-users] what has RSpec got against stack traces?

2009-03-07 Thread Tero Tilus
2009-03-06 22:32, Phlip: > Line 192 contains neither a stray nil nor a method 'macro'. So what exactly _is_ there? Do you know that particular line causes (or noes not cause) the error? In situations like this I usually pop to debugger right before the problematic line and then poke around (ev