Re: [rspec-users] when using command line -l, why do tests from other describe blocks run?

2011-01-11 Thread Mike Mazur
Hi, On Wed, Jan 12, 2011 at 02:32, Lille wrote: > I frequently use the -l option to run only tests of interest, but it's > messy in a way I don't understand... > > describe SomeModel do > >  describe "#some_method" do > >     it... # let's call this line 20 > >  end > >  describe "#some_other_met

[rspec-users] when using command line -l, why do tests from other describe blocks run?

2011-01-11 Thread Lille
Hi, I frequently use the -l option to run only tests of interest, but it's messy in a way I don't understand... describe SomeModel do describe "#some_method" do it... # let's call this line 20 end describe "#some_other_method" do it... # here's some other test end end If

Re: [rspec-users] Cookie value set in spec, but controller can't read it

2011-01-11 Thread David Chelimsky
On Jan 10, 2011, at 8:27 AM, Marko Anastasov wrote: > On Mon, Jan 10, 2011 at 05:05, David Chelimsky wrote: >> On Jan 5, 2011, at 11:54 AM, Marko Anastasov wrote: >> >>> Hello, >>> >>> I set a value in controller spec using @request.cookies: >>> https://gist.github.com/371356ba0a19666fd3b5 >>>

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

2011-01-11 Thread Andrea Reginato
I'm sure is not the best solution, but I solved the problem creating an Initializer monkey patching the method giving the error. I'm pretty new on Ruby and company, as always scratching the surface, and only now getting into the deep, but I hope it will help. # extract config/initializers/rspec

Re: [rspec-users] RSpec newbie ran rspec 2.4 on WinXP, got HOME undefined

2011-01-11 Thread Luis Lavena
On Mon, Jan 10, 2011 at 6:37 PM, RichardOnRails wrote: > Hi, > > I'm running WinXP-Pro/SP3 & Ruby 1.8.6 > > I just got the RSpec Book and successfully ran > gem install rspec --version 2.0.0 > per the book's suggestion. > > In a Command window, I ran > K:\>rspec -v > and got: > K:/_Utilities/ruby1