Skip to content

janlelis/clipboard_formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RSpec Clipboard Formatter [version]

Copies the command to run all failed examples to your clipboard.

Setup

Add the gem to your Gemfile:

gem 'clipboard_formatter'

Add the formatter to your rspec options, e.g. in a .rspec file. You probably want to set it as an additional one, instead of the only one:

--format documentation
--require clipboard_formatter --format ClipboardFormatter

Usage

Run your RSpec suite, but let some tests fail. Then use your clipboard.

MIT License

Copyright (C) 2015 Jan Lelis https://janlelis.com. Released under the MIT license.