update tests to rspec 3.0
run code climate if environment variable provided