Denis Barushev

Email: barushev@gmail.com

RSpec Rails be_a_new matcher

Passes if the object is a Widget and returns true for new_record?:

object.should be_a_new(Widget)

Install MySQL and mysql gem on Mac OS X Leopard

Install MySQL server via MacPorts:

sudo port install mysql5 +server

Setup the database:

sudo -u mysql mysql_install_db5

Configure MySQL to start up automatically when OS X boots:

sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist

Install mysql gem:

sudo gem install mysql -- --with-mysql-config=/opt/local/bin/mysql_config5

Source.

Socket location: /opt/local/var/run/mysql5/mysqld.sock.