超雑にまとめました。修正してください。
登場人物
アプリケーション先輩: いつも忙しい。横に広がるのが得意(デブじゃない)。 後輩: 頼んでばっかしで役に立たない。 サーバー先輩: アプリケーション先輩と仲がいい。Unix Socket でつながるくらい仲良し。 プロクシ先輩: アプリケーション先輩とかサーバー先輩と後輩の間を取り持って代わりに伝えたりしてくれる。たまに勝手にレスポンスを書き換える。
| # This class is needed since Mongoid doesn't support Multi-parameter | |
| # attributes in version 4.0 before it's moved to active model in rails 4 | |
| # | |
| # https://github.com/mongoid/mongoid/issues/2954 | |
| # | |
| require "spec_helper" | |
| describe Mongoid::MultiParameterAttributes do |
| class A | |
| def foo(num) | |
| %w[one two three][num - 1] | |
| end | |
| end | |
| describe A do | |
| describe "#foo" do | |
| RSpec::Matchers.define :do_foo do |args| | |
| match do |instance| |
| Bundle 'git://github.com/kana/vim-altr.git' | |
| " F2, F3でコードとテストを切り替え | |
| nmap <F2> <Plug>(altr-back) | |
| nmap <F3> <Plug>(altr-forward) | |
| " 切り替えの候補を定義 | |
| call altr#define('app/models/%.rb', 'spec/models/%_spec.rb') | |
| call altr#define('app/controllers/%.rb', 'spec/controllers/%_spec.rb') |