Skip to content

Commit 68d2693

Browse files
committed
Switch between RSpec be_present/be_blank
1 parent 6b6cfda commit 68d2693

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

ftplugin/ruby/switch.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ let b:switch_definitions =
1717
\ g:switch_builtins.rspec_expect,
1818
\ g:switch_builtins.rspec_to,
1919
\ g:switch_builtins.rspec_be_truthy_falsey,
20+
\ g:switch_builtins.rspec_be_present_blank,
2021
\ g:switch_builtins.ruby_keyword_string,
2122
\ g:switch_builtins.ruby_string,
2223
\ g:switch_builtins.ruby_short_blocks,

plugin/switch.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ let g:switch_builtins =
107107
\ '\.to_not ': '.to ',
108108
\ },
109109
\ 'rspec_be_truthy_falsey': ['be_truthy', 'be_falsey'],
110+
\ 'rspec_be_present_blank': ['be_present', 'be_blank'],
110111
\ 'eruby_if_clause': {
111112
\ '<% if true or (\(.*\)) %>': '<% if false and (\1) %>',
112113
\ '<% if false and (\(.*\)) %>': '<% if \1 %>',

0 commit comments

Comments
 (0)