Re: [rspec-users] autotest?

2009-05-20 Thread Scott Taylor
Denis Haskin wrote: Thanks. Ok -- removing grosser-autotest lets autotest run, but it's only running my unit tests, not rspec: $ autotest (Not running features. To run features in autotest, set AUTOFEATURE=true.) loading autotest/rails /usr/bin/ruby1.8 -I.:lib:test -rubygems -e "%w[test/uni

Re: [rspec-users] autotest?

2009-05-20 Thread Denis Haskin
Thanks. Ok -- removing grosser-autotest lets autotest run, but it's only running my unit tests, not rspec: $ autotest (Not running features. To run features in autotest, set AUTOFEATURE=true.) loading autotest/rails /usr/bin/ruby1.8 -I.:lib:test -rubygems -e "%w[test/unit test/unit/design_tes

Re: [rspec-users] [Rspec] Problems with autospec

2009-05-20 Thread Denis Haskin
Is this fabled .autotest file fully documented somewhere? It keeps getting referenced in lots of answers and doc, but I haven't located complete doc on it. I'm probably not looking in the right place... thx dwh Robert Lorimor wrote: David Chelimsky wrote: On Thu, May 14, 2009 at 7:51 A

[rspec-users] how to deal with redirect_to on cucumber?

2009-05-20 Thread Zhenning Guan
I have a controller name forums and a action like this: def show redirect_to forum_topics_path(:forum_id => params[:id]) end my scenario is (not completed) == Scenario: User input data correct When I run to the forum 1 -- When /^I run to the (.*)$/ do |topic_lists| visit path

Re: [rspec-users] Cucumber vs Rails Fixtures

2009-05-20 Thread Phlip
Ben Mabey wrote: http://wiki.github.com/aslakhellesoy/cucumber/fixtures Ding! That would have been my next click in my Googling. Let's hope this thread pushes that up. > http://groups.google.com/group/cukes What, no gmane yet?? (-: -- Phlip _

Re: [rspec-users] Change cache_classes on the fly?

2009-05-20 Thread David Chelimsky
On Wed, May 20, 2009 at 6:01 AM, tatyree wrote: > Strange request, I know...also seems pretty unlikely that it will > work, but: > > Any thoughts on how I might change the setting on the fly (or stub > it)?  I'm stopping certain classes loading in production, and I'd like > to be able to test the

Re: [rspec-users] [Cucumber] Fail a scenario from After or AfterStep

2009-05-20 Thread Matt Wynne
On 20 May 2009, at 09:33, aslak hellesoy wrote: On 20 May 2009, at 00:04, aslak hellesoy wrote: Any further thoughts on this, Aslak? I'd prefer to go with a solution in line with the future direction of Cucumber if possible. Sorry, forgot to get back to you Luke. I'm convinced. We'll a

[rspec-users] How do I get additional information from the Matcher?

2009-05-20 Thread Gary Lin
Hi, I am trying to implement my own matcher which use a special algorithm to do the semantics diff-ing between two proprietary configuration file. When come to the report, I would like my formatter to be able to have access to the original configuration file content as well as the diff-ing r

Re: [rspec-users] [webrat] failing feature step when have_selector uses block

2009-05-20 Thread Zach Dennis
On Wed, May 20, 2009 at 5:30 AM, doug livesey wrote: > Hi -- I have a strange bug. > The following step will pass: > > Then /^I should not see any options for the properties$/ do >   response.should have_selector( "table thead" ) > end > > But this will fail: > > Then /^I should not see any option

Re: [rspec-users] Change cache_classes on the fly?

2009-05-20 Thread Ben Mabey
tatyree wrote: Strange request, I know...also seems pretty unlikely that it will work, but: Any thoughts on how I might change the setting on the fly (or stub it)? I'm stopping certain classes loading in production, and I'd like to be able to test the behavior without having to manually change

Re: [rspec-users] Cucumber vs Rails Fixtures

2009-05-20 Thread Ben Mabey
Phlip wrote: Cucumberists: FYI, Cucumber now has it's own mailing list: http://groups.google.com/group/cukes Apologies for not jumping into some wild alternate fixture (or mock!) system, but the unit tests at my new day gig are >cough< hanging by a thread as it is. I need to show off som

[rspec-users] Cucumber vs Rails Fixtures

2009-05-20 Thread Phlip
Cucumberists: Apologies for not jumping into some wild alternate fixture (or mock!) system, but the unit tests at my new day gig are >cough< hanging by a thread as it is. I need to show off some cute Cuke, _without_ rocking the boat! How do I actually use real, pre-existing Rails fixtures, th

[rspec-users] Change cache_classes on the fly?

2009-05-20 Thread tatyree
Strange request, I know...also seems pretty unlikely that it will work, but: Any thoughts on how I might change the setting on the fly (or stub it)? I'm stopping certain classes loading in production, and I'd like to be able to test the behavior without having to manually change the setting in te

Re: [rspec-users] Forum.count.should, should doesn't work?

2009-05-20 Thread David Chelimsky
On Wed, May 20, 2009 at 4:18 AM, Zhenning Guan wrote: > Zhenning Guan wrote: >> David Chelimsky wrote: >>> On Tue, May 19, 2009 at 10:09 AM, Zhenning Guan >>> wrote: features/step_definitions/webrat_steps.rb:10 1 scenario (1 failed) 2 steps (1 failed, 1 passed) === >

Re: [rspec-users] Error in executing controller spec

2009-05-20 Thread David Chelimsky
On Wed, May 20, 2009 at 2:47 AM, Amit Kulkarni wrote: > David Chelimsky wrote: >> On Wed, May 20, 2009 at 1:47 AM, Amit Kulkarni >> wrote: > script/spec spec/controllers/channels_controller_spec1.rb Hey It worked thanks a lot. :-) Can you tell me the difference why it was

Re: [rspec-users] When to stub_model?

2009-05-20 Thread Lee
> I can't remember if you can do that, to be honest. I think the hash of > parameters to stub_model is used to set up stubs on the object - so > they won't get passed to the constructor. Hopefully someone else on > the list should be able to tell you if this is possible. Matt, I have since looked

Re: [rspec-users] When to stub_model?

2009-05-20 Thread Matt Wynne
On 20 May 2009, at 12:03, Lee wrote: Thanks Matt. Very helpful. I have tried out stub_model. The constructor of one of my models (Namespace) requires a mandatory :name attribute to be provided. So when I try to stub_model it - e.g. representative_namespace = stub_model(Namespace) - I get the f

Re: [rspec-users] autotest?

2009-05-20 Thread Scott Taylor
Denis Haskin wrote: I didn't have ZenTest installed. I just did, but I still get the same error. Should I *not* have grosser-autotest installed? $ gem list | grep -i test grosser-autotest (4.0.4) test-unit (2.0.2) ZenTest (4.0.0) Try removing it. Make sure to grab the latest ZenTest (which

[rspec-users] [Cucumber] [Ann] Salad, aka Multi-instance Cucumber

2009-05-20 Thread Bart Zonneveld
(Apologies for crossposting) Yesterday, my pair and I wrote a rough rake task to run features against multiple instances of Cucumber. We decided to call it Salad, since multiple cucumbers makes a nice salad :). The script is very rough, and scratches mostly our own itch. The rake task itsel

Re: [rspec-users] [Rspec] Problems with autospec

2009-05-20 Thread Robert Lorimor
David Chelimsky wrote: > On Thu, May 14, 2009 at 7:51 AM, Hugo Barauna > wrote: >> Hi guys, I am having a problem with autospec. I upgraded to >> rspec-1.2.6, then I tried to run my specs with autospec. All my specs >> passes (green), until here, that's all ok. The problem is that after >> all my

Re: [rspec-users] When to stub_model?

2009-05-20 Thread Lee
Thanks Matt. Very helpful. I have tried out stub_model. The constructor of one of my models (Namespace) requires a mandatory :name attribute to be provided. So when I try to stub_model it - e.g. representative_namespace = stub_model(Namespace) - I get the following spec error. 1) RuntimeError in

Re: [rspec-users] autotest?

2009-05-20 Thread Denis Haskin
I didn't have ZenTest installed. I just did, but I still get the same error. Should I *not* have grosser-autotest installed? $ gem list | grep -i test grosser-autotest (4.0.4) test-unit (2.0.2) ZenTest (4.0.0) dwh Scott Taylor wrote: Denis Haskin wrote: Hmm. Okay, tried that but: $ autos

Re: [rspec-users] auto test?

2009-05-20 Thread Diwakar, ANGLER - EIT
Thanks a lot. It works How should I run a single file using autospec -Original Message- From: rspec-users-boun...@rubyforge.org [mailto:rspec-users-boun...@rubyforge.org] On Behalf Of Scott Taylor Sent: Wednesday, May 20, 2009 11:28 AM To: rspec-users Subject: Re: [rspec-users] auto te

Re: [rspec-users] auto test?

2009-05-20 Thread Diwakar, ANGLER - EIT
While running autospec I am getting the following error LIBMYSQL_.dll was not found and core_rl_magick_.dll was not found What should I do. -Original Message- From: rspec-users-boun...@rubyforge.org [mailto:rspec-users-boun...@rubyforge.org] On Behalf Of Scott Taylor Sent: Wednesd

[rspec-users] failing feature step when have_selector uses block

2009-05-20 Thread doug livesey
Hi -- I have a strange bug. The following step will pass: Then /^I should not see any options for the properties$/ do response.should have_selector( "table thead" ) end But this will fail: Then /^I should not see any options for the properties$/ do response.should have_selector( "table thead

Re: [rspec-users] Forum.count.should, should doesn't work?

2009-05-20 Thread Zhenning Guan
David Chelimsky wrote: > On Tue, May 19, 2009 at 10:09 AM, Zhenning Guan > wrote: >> features/step_definitions/webrat_steps.rb:10 >> >> 1 scenario (1 failed) >> 2 steps (1 failed, 1 passed) >> >> === >> Forum.count == counts.to_i does fine > > That's not an expectation so it won't pass or fail.

Re: [rspec-users] Forum.count.should, should doesn't work?

2009-05-20 Thread Zhenning Guan
Zhenning Guan wrote: > David Chelimsky wrote: >> On Tue, May 19, 2009 at 10:09 AM, Zhenning Guan >> wrote: >>> features/step_definitions/webrat_steps.rb:10 >>> >>> 1 scenario (1 failed) >>> 2 steps (1 failed, 1 passed) >>> >>> === >>> Forum.count == counts.to_i does fine >> >> That's not an expe

Re: [rspec-users] [Cucumber] JUnit, Spring and autowiring

2009-05-20 Thread aslak hellesoy
> > We are having trouble with JUnit-tests that are doing dependency injection in > the setup of database connections. The stacktrace identifies autowiring of > sessionFactory as the problem. During bean creation of sessionFactory we get > a NoSuchMethodError; probably because of trouble when initi

Re: [rspec-users] [Cucumber] Fail a scenario from After or AfterStep

2009-05-20 Thread aslak hellesoy
> > On 20 May 2009, at 00:04, aslak hellesoy wrote: > >>> Any further thoughts on this, Aslak? I'd prefer to go with a solution in >>> line with the future direction of Cucumber if possible. >>> >> >> Sorry, forgot to get back to you Luke. >> >> I'm convinced. We'll add an AfterStep hook. Do you wa

Re: [rspec-users] Error in executing controller spec

2009-05-20 Thread Amit Kulkarni
David Chelimsky wrote: > On Wed, May 20, 2009 at 1:47 AM, Amit Kulkarni > wrote: script/spec spec/controllers/channels_controller_spec1.rb >>> >>> Hey It worked thanks a lot. :-) >>> >>> Can you tell me the difference why it was not running earlier and now it >>> is running.Just for my under

Re: [rspec-users] [Cucumber] Fail a scenario from After or AfterStep

2009-05-20 Thread aslak hellesoy
> On May 19, 2009, at 10:43 PM, Luke Melia wrote: > >> On May 19, 2009, at 7:04 PM, aslak hellesoy wrote: >> >>> I'm convinced. We'll add an AfterStep hook. Do you want to give a stab >>> at a patch? Start by writing a feature - see >>> features/after_block_exceptions.feature for a good example of

Re: [rspec-users] getting strings in results

2009-05-20 Thread David Chelimsky
On Wed, May 20, 2009 at 1:48 AM, Diwakar, ANGLER - EIT wrote: > I updated rspec to 1.2 still I am not getting string values I'm going to need a bit more context than that. Please post some code, rspec examples and backtraces. > > Diwa > > > -Original Message- > From: rspec-users-boun...@

Re: [rspec-users] Error in executing controller spec

2009-05-20 Thread David Chelimsky
On Wed, May 20, 2009 at 1:47 AM, Amit Kulkarni wrote: > Amit Kulkarni wrote: >> David Chelimsky wrote: >>> On Tue, May 19, 2009 at 9:04 AM, Amit Kulkarni >>> wrote: but i am getting the same error which says  RuntimeError in Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_

Re: [rspec-users] getting strings in results

2009-05-20 Thread Diwakar, ANGLER - EIT
I updated rspec to 1.2 still I am not getting string values Diwa -Original Message- From: rspec-users-boun...@rubyforge.org [mailto:rspec-users-boun...@rubyforge.org] On Behalf Of David Chelimsky Sent: Wednesday, May 20, 2009 11:28 AM To: rspec-users Subject: Re: [rspec-users] getti

Re: [rspec-users] Issue with jruby and cucumber step with 4 parameters

2009-05-20 Thread aslak hellesoy
The Cucumber list has moved: http://www.nabble.com/-Cucumber--ANN%3A-New-Google-Group-for-Cucumber-td23602831.html On Wed, May 20, 2009 at 5:29 AM, Korny Sietsma wrote: > Hi - sorry for the cross-list post, but this issue happens only with > cucumber and jruby, and I'm not 100% sure which has the

Re: [rspec-users] Error in executing controller spec

2009-05-20 Thread Amit Kulkarni
David Chelimsky wrote: > On Tue, May 19, 2009 at 9:04 AM, Amit Kulkarni > wrote: >> but i am getting the same error which says RuntimeError in >> Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_control >> ./channels_controller_spec1.rb:149: > It looks like you're calling the file f

Re: [rspec-users] Error in executing controller spec

2009-05-20 Thread Amit Kulkarni
Amit Kulkarni wrote: > David Chelimsky wrote: >> On Tue, May 19, 2009 at 9:04 AM, Amit Kulkarni >> wrote: >>> but i am getting the same error which says RuntimeError in >>> Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_control >>> ./channels_controller_spec1.rb:149: >> It looks l