ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

RSpec

by SublimeText ALL

Sublime Text plugin for RSpec BDD Framework

Details

  • 2018.03.14.23.06.52
    2014.11.25.09.54.52
    3.1.0
  • github.​com
  • github.​com
  • 2 months ago
  • 3 hours ago
  • 15 years ago

Installs

  • Total 43K
  • Win 5K
  • Mac 27K
  • Linux 11K
Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

RSpec Package for Sublime Text

Description

RSpec is a BDD (Behavior-Driven Development) testing framework for Ruby. This package adds support to Sublime Text for specifying and testing Ruby applications with RSpec. It contains extra syntax highlighting and many snippets.

Installation

Recommended: install via Package Control.

Alternative (especially if you want to develop the package further): Clone (your fork of) the repository into your Sublime Text Packages directory.

Key Bindings

RSpec does not define default key bindings to avoid conflicts with other packages. To add your own, open the Command Palette and execute “Preferences: RSpec Key Bindings”.

Features

  • Syntax rules made specially for RSpec
    • RSpec plugin automatically uses RSpec language syntax when you are in a RSpec file
  • RSpec (open spec).sublime-build: executing unit tests for the active module via the Sublime Text Build command
    • it chooses RSpec as the build command automatically when RSpec syntax is applied to the file
  • RSpec (all specs).sublime-build: executing all unit tests for the active project via the Sublime Text Build command
  • Command to run the currently selected line only (supports multiple selections)
  • Command to create a new module and the spec for the module at the same time
  • Command to go to the corresponding spec / source file (available in the Command Palette, can be configured to a keyboard shortcut)
  • Large amount of RSpec snippets
  • Symbol support: use Goto Symbol… inside an RSpec file and you will get a menu with the specification as you've defined it
    • You can also generate a structured document of a spec file with the “RSpec: Generate specification” command