pivotalcommon/vim-config — pull request #36 by mkenyon (2014-07-01 22:45:58+00:00)
Title: Add ,ld command to make a let(:double)

Want to easily make a named double for your rspec tests?
Just write your desired variable on a line, then with the
cursor over the variable, press `,ld`.

You can easily convert:

local_vari*able_foo

to:

let(:local_variable_foo) { double(:local_variable_foo*) }

where `*` represents your cursor.

Notice that you end up in a great position to add
key/value pairs!