Testing in Ruby development
Ruby also has its built-in unit testing library called Test::Unit, but most people like using Behavior-Driven Development (BDD) when using Ruby, and Rails especially. There are two popular BBD frameworks: RSpec and Cucumber.
Quote from the RSpec.info website:
"RSpec is a testing tool for the Ruby programming language. Born under the banner of Behavior-Driven Development, it is designed to make Test-Driven Development a productive and enjoyable experience."
Quote from the Cucumber repository:
"Cucumber is a tool that executes plain-text functional descriptions as automated tests."
We are lucky that there is a single package for Sublime that supports the three testing frameworks: Test::Unit, RSpec, and Cucumber. It's called RubyTest and can be found on https://github.com/maltize/sublime-text-2-ruby-tests.
Tip
The package is called sublime-text-2-ruby-tests but it supports both Sublime Text 2 and 3.
Using RubyTest for Sublime
To install the RubyTest package, we'll use Package...