discourse/vendor/gems/discourse_task/spec/plugin_spec.rb
2013-02-05 14:16:51 -05:00

28 lines
601 B
Ruby

require 'spec_helper'
require 'discourse_task/plugin'
describe DiscourseTask::Plugin do
let(:registry) { stub_everything }
let(:plugin) { DiscourseTask::Plugin.new(registry) }
context '.setup' do
it 'registers its js' do
plugin.expects(:register_js).with('discourse_task')
plugin.setup
end
it 'registers its css' do
plugin.expects(:register_css).with('discourse_task')
plugin.setup
end
it 'registers a task archetype' do
plugin.expects(:register_archetype).with('task')
plugin.setup
end
end
end