Fix rails test code block