fd-rspec-snippets

This package provides rspec snippets and custom snippets

aravindaakash

52

1

0.1.4

MIT

GitHub

FD-rspec-snippets package for Atom and Sublime

Atom

Installing

Install the package FD-rspec-snippets in Atom (Preferences->Install) or use Atom's package manager from a shell:

$ apm install FD-rspec-snippets

Convert to rspec 'it' statements

This package will convert the list of string to Rspec it statements

  1. Select the text
  2. Use cmd+shift+l to Select each line
  3. Use keybinding ctrl+alt+o or Right click -> Convert to-it to convert to Rspec it statements

A Sample gif

Add a quick rspec snippets

  1. To add spec template type spec and press tab
  2. To add it template type sit and press tab
  3. To add e.step template type e. and press tab

A Sample gif

Add custom snippets

You can add your custom snippets and make use of it

Steps:

  1. Click on Open Config Folder
  2. Go to FD-respec-snippets -> snippets-> snippets.cson file
  3. Add custom snippets

Sublime

Installing

Steps:

  1. Select Packages Control: Add Repository from commend palette (commend+shift+p)
  2. Add https://github.com/aravindaakash/convert-to-it.git in the textbox
  3. Select Packages Control: Install package from commend palette (commend+shift+p)
  4. Search for convert-to-it and install

Convert to rspec 'it' statements

This package will convert the list of string to Rspec it statements

Steps:

  1. Select the text
  2. Use cmd+shift+l to Select each line
  3. Use keybinding ctrl+alt+o to convert to Rspec it statements

A Sample gif

Add a quick rspec snippets

  1. To add spec template type spec and press tab

A Sample gif

Add custom snippets

You can add your custom snippets and make use of it

Steps:

  1. Go to Tools -> Developer-> New snippets
  2. Add custom snippets