Sha256: 554771b031f6d08e29b662b8303eaceb4fe23b41f773b8da8d05af64b0133601
Contents?: true
Size: 408 Bytes
Versions: 38
Compression:
Stored size: 408 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') module Cucumber describe Broadcaster do before do @receiver = mock('receiver') @broadcaster = Broadcaster.new([@receiver]) end it "should broadcast methods to registered objects" do @receiver.should_receive(:konbanwa).with('good evening') @broadcaster.konbanwa('good evening') end end end
Version data entries
38 entries across 38 versions & 3 rubygems