Sha256: 5d68c44c00614d5aa8af13fe0469204316934fcda9580767dd7c689e8d0df5f5
Contents?: true
Size: 734 Bytes
Versions: 2
Compression:
Stored size: 734 Bytes
Contents
require 'spec_helper' require 'muzang-plugins/muzang-livereload' module Muzang::Plugins describe "LiveReload" do before(:each) do @bot = stub @livereload = LiveReload.new(@bot) @bot.stub(:plugins => { LiveReload => @livereload }) @connection = stub(:msg => true) Kernel.stub(:load) @message = OpenStruct.new({:channel => "#test", :message => "!reload"}) end it "should load plugins" do Kernel.should_receive(:load).with('muzang-plugins/muzang-livereload.rb') @livereload.call(@connection, @message) end it "should create new instance of plugin" do LiveReload.should_receive(:new).with(@bot) @livereload.call(@connection, @message) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
muzang-plugins-1.1.6 | spec/livereload_spec.rb |
muzang-plugins-1.1.5 | spec/livereload_spec.rb |