-
Quick example of testing login form with mechanize and Test::Unit
I started testing with Ruby. So i first use Test::Unit and then i want to test some functionality on web. I read some examples at mechanize documentation, which is here or at your ruby/gems directory. So let’s look at the code. require ‘mechanize’ require ‘test/unit’ class LoginTest < Test::Unit::TestCase def test_login #creating mechanize object agent Continue reading
-
Multiline comments in Ruby
Do you want comment more than one row ? So use multiline comment like this : =begin your code =end Important rule, this code must be at the begining of row. PS: This code isn’t exactly for comments, but you can us it this way ;-) Continue reading
-
How to add second mysql server with installed WAMP
Because I started learning Ruby on Rails I needed to run some database server for ruby. I like mysql. I developing web aplications with WAMP (Windows + Apache + Mysql + PHP). So i tried to run Ruby on Rails with pre-installed version of mysql 5.1.33 but Rails didn’t work properly. I tried to find Continue reading