migrate to rspec 3
fix a bug encountered during rspec 3 migration