Skip to content

Commit

Permalink
Switch between RSpec be_present/be_blank
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewRadev committed Aug 22, 2023
1 parent 6b6cfda commit 68d2693
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ftplugin/ruby/switch.vim
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ let b:switch_definitions =
\ g:switch_builtins.rspec_expect,
\ g:switch_builtins.rspec_to,
\ g:switch_builtins.rspec_be_truthy_falsey,
\ g:switch_builtins.rspec_be_present_blank,
\ g:switch_builtins.ruby_keyword_string,
\ g:switch_builtins.ruby_string,
\ g:switch_builtins.ruby_short_blocks,
Expand Down
1 change: 1 addition & 0 deletions plugin/switch.vim
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ let g:switch_builtins =
\ '\.to_not ': '.to ',
\ },
\ 'rspec_be_truthy_falsey': ['be_truthy', 'be_falsey'],
\ 'rspec_be_present_blank': ['be_present', 'be_blank'],
\ 'eruby_if_clause': {
\ '<% if true or (\(.*\)) %>': '<% if false and (\1) %>',
\ '<% if false and (\(.*\)) %>': '<% if \1 %>',
Expand Down

0 comments on commit 68d2693

Please sign in to comment.