Ed Ruder
2009-Aug-20 19:16 UTC
[rspec-users] Change in -l command line option when line number is inside a describe block?
All, I often run specs from inside of TextMate, using the RSpec bundle. When the selection is inside of an example, I can run just that example using the RSpec bundle''s "Run Single Example" script, which I assume ends up calling spec with a -l command line option ("line number"). Until a few versions ago (I don''t know precisely when and I''m using 1.1.12), with a selection that''s inside a describe block (but outside of any specific example block), "Run Single Example" would run all of the examples inside of that describe block--a very nice feature that I used all the time. In 1.1.12, it runs just the examples at the "root" of the file, in the top-most describe block, regardless of where the selection is. Was this an intentional change? Or, should I open up a ticket to restore this behavior? Thanks. Ed
David Chelimsky
2009-Aug-20 19:28 UTC
[rspec-users] Change in -l command line option when line number is inside a describe block?
On Thu, Aug 20, 2009 at 2:16 PM, Ed Ruder<ed.ruder at gmail.com> wrote:> All, > > I often run specs from inside of TextMate, using the RSpec bundle. > When the selection is inside of an example, I can run just that > example using the RSpec bundle''s "Run Single Example" script, which I > assume ends up calling spec with a -l command line option ("line > number"). > > Until a few versions ago (I don''t know precisely when and I''m using > 1.1.12), with a selection that''s inside a describe block (but outside > of any specific example block), "Run Single Example" would run all of > the examples inside of that describe block--a very nice feature that I > used all the time. In 1.1.12, it runs just the examples at the "root" > of the file, in the top-most describe block, regardless of where the > selection is. > > Was this an intentional change? Or, should I open up a ticket to > restore this behavior?It was unintentional but has since been fixed. If you can upgrade to 1.2.8 (current), that would be great. HTH, David> > Thanks. > > Ed > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Ed Ruder
2009-Aug-20 20:05 UTC
[rspec-users] Change in -l command line option when line number is inside a describe block?
I lied--I''m running 1.2.7, but I''m happy that this was fixed in 1.2.8! Thanks, David. Ed On Aug 20, 12:28?pm, David Chelimsky <dchelim... at gmail.com> wrote:> On Thu, Aug 20, 2009 at 2:16 PM, Ed Ruder<ed.ru... at gmail.com> wrote: > > All, > > > I often run specs from inside of TextMate, using the RSpec bundle. > > When the selection is inside of an example, I can run just that > > example using the RSpec bundle''s "Run Single Example" script, which I > > assume ends up calling spec with a -l command line option ("line > > number"). > > > Until a few versions ago (I don''t know precisely when and I''m using > > 1.1.12), with a selection that''s inside a describe block (but outside > > of any specific example block), "Run Single Example" would run all of > > the examples inside of that describe block--a very nice feature that I > > used all the time. In 1.1.12, it runs just the examples at the "root" > > of the file, in the top-most describe block, regardless of where the > > selection is. > > > Was this an intentional change? Or, should I open up a ticket to > > restore this behavior? > > It was unintentional but has since been fixed. If you can upgrade to > 1.2.8 (current), that would be great. > > HTH, > David > > > > > Thanks. > > > Ed > > _______________________________________________ > > rspec-users mailing list > > rspec-us... at rubyforge.org > >http://rubyforge.org/mailman/listinfo/rspec-users > > _______________________________________________ > rspec-users mailing list > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users