[rspec-users] Rspec or Test:Unit

2011-07-10 Thread Chandu80
Hello All, I want to know which out of Rspec and Test:Unit is the most used in the industry for unit/integration testing and why? Regards Chandrika ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Rspec or Test:Unit

2011-07-12 Thread Chandu80
Thank you for the info :) Regards Chandrika On Jul 11, 7:00 am, Justin Ko wrote: > On Fri, Jul 8, 2011 at 2:59 AM, Chandu80 wrote: > > Hello All, > > I want to know which out of Rspec and Test:Unit is the most used in > > the industry for unit/integration test

[rspec-users] How to write render expectation in Controller Spec?

2011-07-12 Thread Chandu80
Hello All, I am a rspec beginner and I am trying to find a way out to write render expectation in controller spec.I used the following ways render '/channels/createchannel.html.erb' view.should_receive(:render).with(:action => "createchannel") ChannelsController.expect_render(:action => "createchan

Re: [rspec-users] How to write render expectation in Controller Spec?

2011-07-12 Thread Chandu80
Jul 12, 3:59 pm, David Chelimsky wrote: > On Jul 12, 2011, at 4:36 AM, Chandu80 wrote: > > > Hello All, > > I am a rspec beginner > > Welcome! > > > > > and I am trying to find a way out to write > > render expectation in controller spec. I used the

Re: [rspec-users] Render expectation in Controller spec

2011-07-15 Thread Chandu80
Hi David, Sorry about not pasting the createchannel method earlier,here is the revised controller method. http://pastie.org/2217223 I am trying to test the createchannelpage method which is in the Channels Controller.The createchannelpage renders the createchannel action when the checkChannel? r

[rspec-users] Rspec error while running jruby -S rake spec

2011-09-12 Thread Chandu80
Hello All, I followed steps to install Rspec as in the link pasted below. http://www.pmamediagroup.com/2009/04/tutorial-install-rspec-rails-factory-girl/ I have jRuby on Rails installed on my machine.Hence all commands need to be run with jruby -S extension. However when I run the jruby -S rake

Re: [rspec-users] Rspec error while running jruby -S rake spec

2011-09-15 Thread Chandu80
Hi David, So does that mean that I need to manually delete all other tables for the rake command to run successfully? Regards Chandrika On Sep 13, 11:32 am, David Chelimsky wrote: > On Sep 12, 2011, at 2:44 PM, Chandu80 wrote: > > > > > Hello All, > > > I followed s

Re: [rspec-users] Rspec error while running jruby -S rake spec

2011-09-19 Thread Chandu80
Hi, I am using the jdbc adapter because the application I am using is being developed on Jruby on Rails. Regards Chandrika On Sep 15, 2:31 pm, David Chelimsky wrote: > On Sep 15, 2011, at 9:54 AM, Chandu80 wrote: > > > > > > > > > > > On Sep 13, 11:32 am, Da

[rspec-users] uninitialized constant Spec::Rails (NameError) when running spec command

2011-09-22 Thread Chandu80
I get the following error when trying to run a spec command on a model test. The command is :- C:\Rspec Test\spec\models>spec bank_account_spec.rb The error is :- c:/jruby-1.5.0/lib/ruby/gems/1.8/gems/rspec-rails-1.3.0/lib/spec/rails/ matchers/ ar_be_valid.rb:2: uninitialized constant Spec::Rail

Re: [rspec-users] uninitialized constant Spec::Rails (NameError) when running spec command

2011-09-22 Thread Chandu80
vels... from C:/jruby-1.5.0/lib/ruby/gems/1.8/gems/rspec-1.3.0/bin/ spec:5 from C:/jruby-1.5.0/lib/ruby/gems/1.8/gems/rspec-1.3.0/bin/ spec:21:in `l oad' from c:/jruby-1.5.0/bin/spec:21 Regards Chandrika On Sep 23, 3:32 am, David Chelimsky wrote: > On Sep 22, 2011,

Re: [rspec-users] uninitialized constant Spec::Rails (NameError) when running spec command

2011-09-27 Thread Chandu80
Hello All, Is there any way to fix the error? Regards Chandrika On Sep 23, 10:41 am, Chandu80 wrote: > Hi David, > Tried from the root directory,gives the same error. > > C:/Rspec Test 1/rspec_demo/vendor/rails/activesupport/lib/ > active_support/depende > ncies.rb:443:in `loa