discourse/vendor/gems/discourse_emoji/spec/plugin_spec.rb

25 lines
488 B
Ruby
Raw Normal View History

2013-02-05 14:16:51 -05:00
require 'spec_helper'
require 'discourse_emoji/plugin'
require 'ostruct'
describe DiscourseEmoji::Plugin do
let(:registry) { stub_everything }
let(:plugin) { DiscourseEmoji::Plugin.new(registry) }
context '.setup' do
2013-02-25 11:42:20 -05:00
it 'registers its js' do
2013-02-05 14:16:51 -05:00
plugin.expects(:register_js).with('discourse_emoji', any_parameters)
plugin.setup
2013-02-25 11:42:20 -05:00
end
2013-02-05 14:16:51 -05:00
2013-02-25 11:42:20 -05:00
it 'registers its css' do
2013-02-05 14:16:51 -05:00
plugin.expects(:register_css).with('discourse_emoji')
plugin.setup
2013-02-25 11:42:20 -05:00
end
2013-02-05 14:16:51 -05:00
end
end