Posts Tagged ‘Testing’
Posted by Balaji D Loganathan on June 12th, 2010

If you are one of the victim who got the below error on your Windows machine…

Building native extensions.  This could take a while...
ERROR:  Error installing rcov:
        ERROR: Failed to build gem native extension.

F:/--ruby install path--/Ruby/bin/ruby.exe extconf.rb
creating Makefile

nmake
'nmake' is not recognized as an internal or external command,
operable program or batch file.

Gem files will remain installed in F:/--ruby install path--/Ruby/lib/ruby/gems/1.8/ge
ms/rcov-0.9.8 for inspection.
Results logged to F:/--ruby install path--/Ruby/lib/ruby/gems/1.8/gems/rcov-0.9.8/ext
/rcovrt/gem_make.out

the I have a suggestion.
(more…)

Tags: , , ,
Posted in Software | No Comments »
Posted by Balaji D Loganathan on April 20th, 2010

If you want to automagically login to a remote page, then scrap/read the remote content, Mechanize would be right choice for you.
The sample code will access the demo site http://www.cmsimple.org, login with the password “test”, then reads its protected menus using Nokogiri.
(more…)

Tags: , , , , ,
Posted in Software | No Comments »
Posted by Balaji D Loganathan on September 22nd, 2009

Recently I tried to write the integration tests for a Rails app which uses Authlogic for authentication.
We decided to use RSpec for unit and functional testing, and Webrat + RSpec combo for integration testing. That means Webrat with Rspec without Cucumber. The fun started when we want to integrate webrat + rspec with authlogic.
(more…)

Tags: , , , , , , , ,
Posted in Software | 3 Comments »
Posted by Neelkanth Ram on June 9th, 2009

Before I jump in to saying how to write unit testing in Ruby on Rails, let me share what i felt about testing. When I was introduced about Unit Testing, I felt its simply a waste of time (IMHO I think many coders before getting addicted to testing might feel the same way), what is so great about testing if I can test my own code manually that’s what coders (people who are not aware of unit testing importance) might think so. (more…)

Tags: , , , ,
Posted in Software | 2 Comments »