fix error in code to test a ruby spec