mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 01:14:12 +08:00
FIX: Remove unused test
This commit is contained in:
@ -160,27 +160,6 @@ describe Plugin::Instance do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context "themes" do
|
|
||||||
it "can register a theme" do
|
|
||||||
plugin = Plugin::Instance.new nil, "/tmp/test.rb"
|
|
||||||
plugin.register_theme('plugin') do |theme|
|
|
||||||
theme.set_color_scheme(
|
|
||||||
primary: 'ffff00',
|
|
||||||
secondary: '222222',
|
|
||||||
tertiary: '0f82af',
|
|
||||||
quaternary: 'c14924',
|
|
||||||
header_background: '111111',
|
|
||||||
header_primary: '333333',
|
|
||||||
highlight: 'a87137',
|
|
||||||
danger: 'e45735',
|
|
||||||
success: '1ca551',
|
|
||||||
love: 'fa6c8d'
|
|
||||||
)
|
|
||||||
end
|
|
||||||
expect(plugin.themes).to be_present
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
context "register_color_scheme" do
|
context "register_color_scheme" do
|
||||||
it "can add a color scheme for the first time" do
|
it "can add a color scheme for the first time" do
|
||||||
plugin = Plugin::Instance.new nil, "/tmp/test.rb"
|
plugin = Plugin::Instance.new nil, "/tmp/test.rb"
|
||||||
|
Reference in New Issue
Block a user