Sha256: da70713883ec773d96902acf7b413d3dcdabb4f142974653ffa6c9bfc1fd22b5
Contents?: true
Size: 552 Bytes
Versions: 3
Compression:
Stored size: 552 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", "DRUG-bot | Version: #{Muzang::VERSION} | Plugins: *Motd* ") @motd.call(@connection, @message) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
muzang-plugins-1.0.2 | spec/motd_spec.rb |
muzang-plugins-1.0.1 | spec/motd_spec.rb |
muzang-plugins-1.0.0 | spec/motd_spec.rb |