added rspec test for ruby