Permalink
Browse files

Version 1.3

Minor bump, add rspec 1.26 'expect to' and 'expect to_not' syntax highlights and snippets.
  • Loading branch information...
1 parent 6c2b221 commit fefe10142351ef496da0b41a776507ad9fa7c217 @mahlonsmith mahlonsmith committed with vim-scripts Jun 16, 2009
Showing with 10 additions and 4 deletions.
  1. +1 −1 plugin/specky.vim
  2. +7 −1 snippets/rspec.snippets
  3. +2 −2 syntax/rspec.vim
View
@@ -2,7 +2,7 @@
"
" Specky!
" Mahlon E. Smith <mahlon@martini.nu>
-" $Id: specky.vim 68 2009-04-20 01:24:08Z mahlon $
+" $Id: specky.vim 69 2009-04-20 05:06:53Z mahlon $
"
@@ -3,7 +3,7 @@
# 'snipmate' Vim plugin by Michael Sanders <msanders42+vim@gmail.com>.
# http://www.vim.org/scripts/script.php?script_id=2540
#
-# $Id: rspec.snippets 66 2009-04-03 23:34:00Z mahlon $
+# $Id: rspec.snippets 70 2009-06-01 14:33:54Z mahlon $
#
snippet .and and_raise()
@@ -134,6 +134,12 @@ snippet shbp
${1:target}.should ${2:be_${3:predicate}} ${4}
snippet shnbp
${1:target}.should_not ${2:be_${3:predicate}} ${4}
+snippet exre
+ expect { ${1} }.to raise_error( ${2:ErrorClass}, /${3:message match}/i )
+ ${4}
+snippet exnre
+ expect { ${1} }.to_not raise_error( ${2:ErrorClass} )
+ ${3}
snippet shre
lambda { ${1} }.should raise_error( ${2:ErrorClass}, /${3:message match}/i )
${4}
View
@@ -1,6 +1,6 @@
"
" specky: syntax highlighting for rspec files.
-" $Id: rspec.vim 66 2009-04-03 23:34:00Z mahlon $
+" $Id: rspec.vim 70 2009-06-01 14:33:54Z mahlon $
"
runtime! syntax/ruby.vim
@@ -21,7 +21,7 @@ highlight link rspecMockMethods Function
syntax keyword rspecKeywords should should_not should_not_receive should_receive
highlight link rspecKeywords Constant
-syntax keyword rspecMatchers be_a be_a_kind_of be_an be_an_instance_of be_close be_false be_instance_of be_kind_of be_nil be_true change eql equal exist have have_at_least have_at_most have_exactly include match matcher raise_error respond_to satisfy throw_symbol wrap_expectation
+syntax keyword rspecMatchers be_a be_a_kind_of be_an be_an_instance_of be_close be_false be_instance_of be_kind_of be_nil be_true change eql equal exist expect have have_at_least have_at_most have_exactly include match matcher raise_error respond_to satisfy throw_symbol to to_not wrap_expectation
highlight link rspecMatchers Function
syntax keyword rspecMessageExpectation advise any_number_of_times at_least at_most exactly expected_messages_received generate_error ignoring_args matches_at_least_count matches_at_most_count matches_exact_count matches_name_but_not_args negative_expectation_for never once ordered similar_messages times twice verify_messages_received with

0 comments on commit fefe101

Please sign in to comment.