Re: [rspec-users] autotest giving error when having shared example in specs

2011-02-03 Thread Adam Greene
I believe this is caused by a bad example on https://github.com/rspec/rspec/wiki/autotest ,specifically under the section "Advanced autotest configuration". I ran into this exact same issue and it was solved by changing the example to use spec/**/*_spec.rb. I went ahead and took the liberty of u

Re: [rspec-users] Possible to ask rspec to show more code in the debugger?

2011-02-03 Thread Rick DeNatale
On Thu, Feb 3, 2011 at 1:40 PM, David Kahn wrote: > This came up from an other issue where I needed to go check something in > test::unit. Immediately when I dropped into the debugger in test::unit I saw > something I have been missing: test unit by default shows a number of lines > of code. Is th

Re: [rspec-users] Is there a way to tell rspec not to fail the test while in debugger?

2011-02-03 Thread David Kahn
On Thu, Feb 3, 2011 at 11:24 AM, David Chelimsky wrote: > On Feb 3, 2011, at 11:04 AM, David Kahn wrote: > > > > On Thu, Feb 3, 2011 at 10:32 AM, David Chelimsky wrote: > >> On Feb 3, 2011, at 9:28 AM, David Kahn wrote: >> >> On Thu, Feb 3, 2011 at 8:48 AM, Scott Taylor wrote: >> >>> >>> Probably

[rspec-users] Possible to ask rspec to show more code in the debugger?

2011-02-03 Thread David Kahn
This came up from an other issue where I needed to go check something in test::unit. Immediately when I dropped into the debugger in test::unit I saw something I have been missing: test unit by default shows a number of lines of code. Is there a way to make the rspec debugger do this? I am not sur

Re: [rspec-users] Is there a way to tell rspec not to fail the test while in debugger?

2011-02-03 Thread Scott Taylor
On Feb 3, 2011, at 12:04 PM, David Kahn wrote: > > > On Thu, Feb 3, 2011 at 10:32 AM, David Chelimsky wrote: > On Feb 3, 2011, at 9:28 AM, David Kahn wrote: > >> On Thu, Feb 3, 2011 at 8:48 AM, Scott Taylor wrote: >> >> Probably manually rescuing your debugger call would work: >> >> begin

Re: [rspec-users] Is there a way to tell rspec not to fail the test while in debugger?

2011-02-03 Thread David Chelimsky
On Feb 3, 2011, at 11:04 AM, David Kahn wrote: > > > On Thu, Feb 3, 2011 at 10:32 AM, David Chelimsky wrote: > On Feb 3, 2011, at 9:28 AM, David Kahn wrote: > >> On Thu, Feb 3, 2011 at 8:48 AM, Scott Taylor wrote: >> >> Probably manually rescuing your debugger call would work: >> >> begin >

Re: [rspec-users] Is there a way to tell rspec not to fail the test while in debugger?

2011-02-03 Thread David Kahn
On Thu, Feb 3, 2011 at 10:32 AM, David Chelimsky wrote: > On Feb 3, 2011, at 9:28 AM, David Kahn wrote: > > On Thu, Feb 3, 2011 at 8:48 AM, Scott Taylor wrote: > >> >> Probably manually rescuing your debugger call would work: >> >> begin >> debugger >> rescue Exception >> end >> > > Thanks, I jus

Re: [rspec-users] Is there a way to tell rspec not to fail the test while in debugger?

2011-02-03 Thread David Chelimsky
On Feb 3, 2011, at 9:28 AM, David Kahn wrote: > On Thu, Feb 3, 2011 at 8:48 AM, Scott Taylor wrote: > > Probably manually rescuing your debugger call would work: > > begin > debugger > rescue Exception > end > > Thanks, I just tried this but no go, the rspec still trips and fails me out. > M

Re: [rspec-users] Is there a way to tell rspec not to fail the test while in debugger?

2011-02-03 Thread David Kahn
On Thu, Feb 3, 2011 at 8:48 AM, Scott Taylor wrote: > > Probably manually rescuing your debugger call would work: > > begin > debugger > rescue Exception > end > Thanks, I just tried this but no go, the rspec still trips and fails me out. Maybe I have a really different methodology but I depend

Re: [rspec-users] Is there a way to tell rspec not to fail the test while in debugger?

2011-02-03 Thread Scott Taylor
Probably manually rescuing your debugger call would work: begin debugger rescue Exception end Scott On Feb 3, 2011, at 9:18 AM, David Kahn wrote: > I am curious as with Test::Unit I could go into the debugger and stay all day > inside of a test and make all kinds of errors without a problem

[rspec-users] Is there a way to tell rspec not to fail the test while in debugger?

2011-02-03 Thread David Kahn
I am curious as with Test::Unit I could go into the debugger and stay all day inside of a test and make all kinds of errors without a problem. With rspec I experience that if I make a bad query/ActiveRecord call that it flips out and fails the test, throwing me back to the command prompt. This is n

Re: [rspec-users] [RAILS] [rspec 2.4.0] helper spec works but rails escapes all output

2011-02-03 Thread Rob Aldred
Hi Since rails 3 all strings are escaped, unlike rails 2 where you had to use the h method use .html_safe in your helper method to stop the output escaping the test is correct This article will explain a little bit more http://markconnell.co.uk/posts/2010/02/rails-3-html-escaping -- Rob Aldred