mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-23 22:12:30 -05:00
28 lines
571 B
Ruby
28 lines
571 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
|