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

Version Path
cucumber-0.8.7 spec/cucumber/broadcaster_spec.rb
cucumber-0.10.7 spec/cucumber/broadcaster_spec.rb
cucumber-0.10.6 spec/cucumber/broadcaster_spec.rb
cucumber-0.10.5 spec/cucumber/broadcaster_spec.rb
cucumber-0.10.3 spec/cucumber/broadcaster_spec.rb
cucumber-0.10.2 spec/cucumber/broadcaster_spec.rb
cucumber-0.10.1 spec/cucumber/broadcaster_spec.rb
stefl-cucumber-0.10.1 spec/cucumber/broadcaster_spec.rb
vim-jar-0.1.2.0001 bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/broadcaster_spec.rb
vim-jar-0.1.2 bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/broadcaster_spec.rb
vim-jar-0.1.1 bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/broadcaster_spec.rb
vim-jar-0.1.0 bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/broadcaster_spec.rb
cucumber-0.10.0 spec/cucumber/broadcaster_spec.rb
cucumber-0.9.4 spec/cucumber/broadcaster_spec.rb
cucumber-0.9.3 spec/cucumber/broadcaster_spec.rb
cucumber-0.9.2 spec/cucumber/broadcaster_spec.rb
cucumber-0.9.1 spec/cucumber/broadcaster_spec.rb
cucumber-0.9.0 spec/cucumber/broadcaster_spec.rb
cucumber-0.8.5 spec/cucumber/broadcaster_spec.rb
cucumber-0.8.4 spec/cucumber/broadcaster_spec.rb