Sha256: a0d4258c72c2978e7eb5e197c9e8b303657cf581921611928e297568d405e4e1
Contents?: true
Size: 469 Bytes
Versions: 5
Compression:
Stored size: 469 Bytes
Contents
require 'rib/test' require 'rib/core/completion' describe Rib::Completion do paste :rib before do Rib::Completion.enable end would 'start bond' do new_shell do |sh| eval_binding = sh.method(:eval_binding).source_location mock(Bond).start(having(eval_binding: is_a(Proc))).peek_args do |*args| expect(args.first[:eval_binding].source_location).eq eval_binding args end end expect(Bond).started? end end
Version data entries
5 entries across 5 versions & 1 rubygems