Commit 7e6ff7d5f9e22336064a95e1e5b6582db9523455
Committed by
Daniela Feitosa
1 parent
67eaa01a
Exists in
master
and in
29 other branches
Little fixes
Showing
3 changed files
with
6 additions
and
6 deletions
Show diff stats
app/views/layouts/application-ng.rhtml
@@ -14,7 +14,7 @@ | @@ -14,7 +14,7 @@ | ||
14 | <%= stylesheet_link_tag theme_stylesheet_path %> | 14 | <%= stylesheet_link_tag theme_stylesheet_path %> |
15 | <%= stylesheet_link_tag jquery_ui_theme_stylesheet_path %> | 15 | <%= stylesheet_link_tag jquery_ui_theme_stylesheet_path %> |
16 | <% @plugins.enabled_plugins.each do |plugin| %> | 16 | <% @plugins.enabled_plugins.each do |plugin| %> |
17 | - <% if plugin.stylesheets? %> | 17 | + <% if plugin.stylesheet? %> |
18 | <%= stylesheet_tag plugin.class.public_path('style.css'), {} %> | 18 | <%= stylesheet_tag plugin.class.public_path('style.css'), {} %> |
19 | <% end %> | 19 | <% end %> |
20 | <% end %> | 20 | <% end %> |
lib/noosfero/plugin.rb
@@ -64,7 +64,7 @@ class Noosfero::Plugin | @@ -64,7 +64,7 @@ class Noosfero::Plugin | ||
64 | 64 | ||
65 | # -> If true, noosfero will include plugin_dir/public/style.css into | 65 | # -> If true, noosfero will include plugin_dir/public/style.css into |
66 | # application | 66 | # application |
67 | - def stylesheets? | 67 | + def stylesheet? |
68 | false | 68 | false |
69 | end | 69 | end |
70 | 70 |
test/functional/application_controller_test.rb
@@ -443,7 +443,7 @@ class ApplicationControllerTest < Test::Unit::TestCase | @@ -443,7 +443,7 @@ class ApplicationControllerTest < Test::Unit::TestCase | ||
443 | 443 | ||
444 | should 'include stylesheets supplied by plugins' do | 444 | should 'include stylesheets supplied by plugins' do |
445 | plugin1 = mock() | 445 | plugin1 = mock() |
446 | - plugin1.stubs(:stylesheets?).returns(true) | 446 | + plugin1.stubs(:stylesheet?).returns(true) |
447 | plugin1.stubs(:js_files).returns([]) | 447 | plugin1.stubs(:js_files).returns([]) |
448 | plugin1_class = mock() | 448 | plugin1_class = mock() |
449 | plugin1_path = '/plugin1/style.css' | 449 | plugin1_path = '/plugin1/style.css' |
@@ -451,7 +451,7 @@ class ApplicationControllerTest < Test::Unit::TestCase | @@ -451,7 +451,7 @@ class ApplicationControllerTest < Test::Unit::TestCase | ||
451 | plugin1.stubs(:class).returns(plugin1_class) | 451 | plugin1.stubs(:class).returns(plugin1_class) |
452 | 452 | ||
453 | plugin2 = mock() | 453 | plugin2 = mock() |
454 | - plugin2.stubs(:stylesheets?).returns(true) | 454 | + plugin2.stubs(:stylesheet?).returns(true) |
455 | plugin2.stubs(:js_files).returns([]) | 455 | plugin2.stubs(:js_files).returns([]) |
456 | plugin2_class = mock() | 456 | plugin2_class = mock() |
457 | plugin2_path = '/plugin2/style.css' | 457 | plugin2_path = '/plugin2/style.css' |
@@ -474,7 +474,7 @@ class ApplicationControllerTest < Test::Unit::TestCase | @@ -474,7 +474,7 @@ class ApplicationControllerTest < Test::Unit::TestCase | ||
474 | should 'include javascripts supplied by plugins' do | 474 | should 'include javascripts supplied by plugins' do |
475 | js1 = 'js1.js' | 475 | js1 = 'js1.js' |
476 | plugin1 = mock() | 476 | plugin1 = mock() |
477 | - plugin1.stubs(:stylesheets?).returns(false) | 477 | + plugin1.stubs(:stylesheet?).returns(false) |
478 | plugin1.stubs(:js_files).returns([js1]) | 478 | plugin1.stubs(:js_files).returns([js1]) |
479 | plugin1_class = mock() | 479 | plugin1_class = mock() |
480 | plugin1_path = '/plugin1/'+js1 | 480 | plugin1_path = '/plugin1/'+js1 |
@@ -484,7 +484,7 @@ class ApplicationControllerTest < Test::Unit::TestCase | @@ -484,7 +484,7 @@ class ApplicationControllerTest < Test::Unit::TestCase | ||
484 | js2 = 'js2.js' | 484 | js2 = 'js2.js' |
485 | js3 = 'js3.js' | 485 | js3 = 'js3.js' |
486 | plugin2 = mock() | 486 | plugin2 = mock() |
487 | - plugin2.stubs(:stylesheets?).returns(false) | 487 | + plugin2.stubs(:stylesheet?).returns(false) |
488 | plugin2.stubs(:js_files).returns([js2, js3]) | 488 | plugin2.stubs(:js_files).returns([js2, js3]) |
489 | plugin2_class = mock() | 489 | plugin2_class = mock() |
490 | plugin2_path2 = '/plugin2/'+js2 | 490 | plugin2_path2 = '/plugin2/'+js2 |