Hello Champs, Can anyone tell me that from where should i start for testing views of my application ? Want to know every possible way. Thanks in advance :) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Is there anyone who can help me with it ..? One more issue, How can i check redirection of a page in integration testing.. Scenario is- I have a search page "/home" where i have to fill values in my search box fields and after i hit submit it''ll post to the "/home/search" page with the results coming out respective to the search texts. Hope you people got me right. Currently i am doing this, post "/home/search" post_variable_names Also tried: post_via_redirect "/home/search" post_variable_names But both of them are not working.. :''( Hemant Bhargava wrote:> Hello Champs, > > Can anyone tell me that from where should i start for testing views of > my application ? > Want to know every possible way. > > Thanks in advance :)-- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hemant Bhargava wrote:> Hello Champs, > > Can anyone tell me that from where should i start for testing views of > my application ?Well, you can use RSpec (preferably with rspec_hpricot_matchers) to test the generated HTML, or you can do what I''ve been doing lately: not writing much in the way of view specs, and instead letting my Cucumber features exercise the views.> Want to know every possible way.And you think you''re going to find out every possible way from list postings? Come on!> > Thanks in advance :)Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. --0015174760d8089cd2047d932728 Content-Type: text/plain; charset=ISO-8859-1 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. --0015174760d8089cd2047d932728--
Ok fine .. Can you tell me the second query as well.. ? Marnen Laibow-Koser wrote:> Hemant Bhargava wrote:> > And you think you''re going to find out every possible way from list > postings? Come on! > >> >> Thanks in advance :) > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org-- Posted via http://www.ruby-forum.com/. --000325558e16dd0c0f047d935092 Content-Type: text/plain; charset=ISO-8859-1 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. --000325558e16dd0c0f047d935092--
You also can try Selenium (http://seleniumhq.org/), webrat (http:// agilewebdevelopment.com/plugins/webrat), or watir (http://watir.com/) if you want simulate browser behavior and/or test javascript. On 20 ene, 07:12, Hemant Bhargava <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Ok fine .. > > Can you tell me the second query as well.. ? > > Marnen Laibow-Koser wrote: > > Hemant Bhargava wrote: > > > And you think you''re going to find out every possible way from list > > postings? Come on! > > >> Thanks in advance :) > > > Best, > > -- > > Marnen Laibow-Koser > >http://www.marnen.org > > mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
2010/1/19 Hemant Bhargava <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>:> Hello Champs, > > Can anyone tell me that from where should i start for testing views of > my application ?I would recommend starting by working through the Rails Guide on testing at http://guides.rubyonrails.org which includes testing views. This shows how to use the basic testing facilities provided by rails. Many (including myself) believe that additional tools mentioned by others in the thread, such as rspec, are significant improvements on the built in testing tools but I think it is useful to understand the basics as described in the tutorial before going on to better things. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi Guyz, Thanks a lot for your support .. Resolved it .. But now i have got another issue regarding ferret engine. Posting it in new thread. Colin Law wrote:> 2010/1/19 Hemant Bhargava <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>: >> Hello Champs, >>-- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.