Skip to content

Instantly share code, notes, and snippets.

@alpaca-tc
Last active December 16, 2015 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alpaca-tc/5449889 to your computer and use it in GitHub Desktop.
Save alpaca-tc/5449889 to your computer and use it in GitHub Desktop.
" autload/test.vim
function! test#initialize()
ruby << EOF
EOF
endfunction
" autoload/test/initialize.vim
function! test#initialize#expect_error()
call test#initialize()
ruby << EOF
require 'net/http'
#=> 標準モジュールはOK
require 'rspec'
#=> 標準モジュールじゃなければなんでも。
EOF
endfunction
" :call test#initialize#expect_error()
@alpaca-tc
Copy link
Author

function! test#initialize#expect_error()でも
まだruby空間を一度も開いてない状態なら読み込める。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment