Sha256: 71a8ecd62dd0efe112e22cddd7d6545c298093e6e3373f5e02b34ab9a7f7e017
Contents?: true
Size: 550 Bytes
Versions: 5
Compression:
Stored size: 550 Bytes
Contents
require 'spec_helper' require 'muzang-plugins/muzang-motd' describe "Motd" do before do @message = OpenStruct.new({ :command => :join, :channel => "#test", :nick => "DRUG-bot" }) @bot = stub @motd = Motd.new(@bot) @bot.stub(:plugins => { Motd => @motd }) @connection = stub(:msg => true, :nick => "DRUG-bot") end it "should send message after join to channel" do @connection.should_receive(:msg).with("#test", "Muzang | Version: #{Muzang::VERSION} | Plugins: *Motd* ") @motd.call(@connection, @message) end end
Version data entries
5 entries across 5 versions & 1 rubygems