Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adapt vim-ruby-minitest repo for shoulda-context

  • Loading branch information...
commit c56c171699f224bc3cbf268f55899d5a8bba94e5 1 parent f6759f2
@sunaku authored
Showing with 15 additions and 72 deletions.
  1. +3 −3 README.markdown
  2. +12 −69 after/syntax/ruby.vim
View
6 README.markdown
@@ -1,7 +1,7 @@
-# vim-ruby-minitest
+# vim-ruby-shoulda-context
-Vim syntax highlighting and `i_CTRL-X_CTRL-U` completion of [MiniTest](
-https://github.com/seattlerb/minitest#readme) methods and assertions.
+Vim syntax highlighting and `i_CTRL-X_CTRL-U` completion of [shoulda-context](
+https://github.com/thoughtbot/shoulda-context#readme) methods and assertions.
## Installation
View
81 after/syntax/ruby.vim
@@ -1,75 +1,18 @@
syntax keyword rubyTestMethod
- \ pass
- \ skip
- \ flunk
- \ assert
- \ assert_block
- \ assert_empty
- \ assert_equal
- \ assert_in_delta
- \ assert_in_epsilon
- \ assert_includes
- \ assert_instance_of
- \ assert_kind_of
- \ assert_match
- \ assert_nil
- \ assert_operator
- \ assert_predicate
- \ assert_raises
- \ assert_respond_to
- \ assert_same
- \ assert_silent
- \ assert_throws
- \ refute
- \ refute_empty
- \ refute_equal
- \ refute_in_delta
- \ refute_in_epsilon
- \ refute_includes
- \ refute_instance_of
- \ refute_kind_of
- \ refute_match
- \ refute_nil
- \ refute_operator
- \ refute_predicate
- \ refute_respond_to
- \ refute_same
- \ must_be
- \ must_be_close_to
- \ must_be_empty
- \ must_be_instance_of
- \ must_be_kind_of
- \ must_be_nil
- \ must_be_same_as
- \ must_be_silent
- \ must_be_within_delta
- \ must_be_within_epsilon
- \ must_equal
- \ must_include
- \ must_match
- \ must_output
- \ must_raise
- \ must_respond_to
- \ must_send
- \ must_throw
- \ wont_be
- \ wont_be_close_to
- \ wont_be_empty
- \ wont_be_instance_of
- \ wont_be_kind_of
- \ wont_be_nil
- \ wont_be_same_as
- \ wont_be_within_delta
- \ wont_be_within_epsilon
- \ wont_equal
- \ wont_include
- \ wont_match
- \ wont_respond_to
+ \ assert_same_elements
+ \ assert_contains
+ \ assert_does_not_contain
+ \ assert_accepts
+ \ assert_rejects
syntax keyword rubyTestStatement
- \ describe
- \ it
- \ before
+ \ context
+ \ should
+ \ should_not
+ \ before_should
+ \ should_eventually
+ \ described_type
+ \ subject
highlight link rubyTestMethod Function
highlight link rubyTestStatement Statement
Please sign in to comment.
Something went wrong with that request. Please try again.