Manual:Coding conventions/Ruby

This is a draft for coding conventions for Ruby in MediaWiki development.

By default, you can base the Ruby coding conventions on GitHub's Ruby style guide.

The context of this page is automatic browser testing with Cucumber / Selenium / PageObject. Other Ruby code may have different conventions.

GWT scenarios

 * The scenarios are supposed to be as human-readable as possible. Do not turn them into a programming language - they are supposed to be a communication tool between users, product managers, testers and developers.
 * Avoid mentioning implementation details in the scenarios.

Abstraction

 * Direct calls to Selenium function are not supposed to be used. Use PageObject.

Layout

 * Avoid writing the parentheses in function calls.