Sha256: 93810fafb15a92516549e6e1c711f344a3d277c3a6357dcbc6e685ad801c29f9

Contents?: true

Size: 364 Bytes

Versions: 25

Compression:

Stored size: 364 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

module Cucumber
  describe Broadcaster do
    
    it "should broadcast methods to registered objects" do
      receiver = mock('receiver')
      broadcaster = Broadcaster.new([receiver])

      receiver.should_receive(:konbanwa).with('good evening')
      broadcaster.konbanwa('good evening')
    end
  end
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
aslakhellesoy-cucumber-0.1.99.7 spec/cucumber/broadcaster_spec.rb
aslakhellesoy-cucumber-0.1.99.8 spec/cucumber/broadcaster_spec.rb
aslakhellesoy-cucumber-0.1.99.9 spec/cucumber/broadcaster_spec.rb
kosmas58-cucumber-0.1.99.21 spec/cucumber/broadcaster_spec.rb
kosmas58-cucumber-0.1.99.23 spec/cucumber/broadcaster_spec.rb