ruby file and test code with rspec