MochaとRails3.1.0を使用したRailsテストからの非常に奇妙な出力が表示されます。
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #<GitAccess:0xbb5c344>.branches(any_parameters)
satisfied expectations:
- allowed any number of times, invoked once: #<GitAccess:0xbb5c344>.branches(any_parameters)
私の「ブランチ」メソッドは一度も呼び出されなかったが、同じオブジェクトに対して一度呼び出されたと書かれています。これはどのように可能ですか?私のコントローラーは次のようになります。
def create
git_access.branches()
end
私はこれがどのように可能であるかを完全に理解していません。