From: David Gageot Date: Fri, 25 May 2012 11:08:16 +0000 (+0200) Subject: Fix dashboard name X-Git-Tag: 3.1~61 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d5ff32e910b970f464b1fadd70fd65809f07e4e2;p=sonarqube.git Fix dashboard name --- diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/dashboards/MyFavouritesDashboard.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/dashboards/MyFavouritesDashboard.java index 8e0e6582ba4..0e05c7ec82e 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/dashboards/MyFavouritesDashboard.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/dashboards/MyFavouritesDashboard.java @@ -30,7 +30,7 @@ import org.sonar.plugins.core.filters.MyFavouritesFilter; public final class MyFavouritesDashboard extends AbstractFilterDashboard { @Override public String getName() { - return "My Favourites"; + return "My favourites"; } @Override diff --git a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/dashboards/MyFavouritesDashboardTest.java b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/dashboards/MyFavouritesDashboardTest.java index d3cd570b876..9955cbe9be9 100644 --- a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/dashboards/MyFavouritesDashboardTest.java +++ b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/dashboards/MyFavouritesDashboardTest.java @@ -34,7 +34,7 @@ public class MyFavouritesDashboardTest { @Test public void should_have_a_name() { - assertThat(template.getName()).isEqualTo("My Favourites"); + assertThat(template.getName()).isEqualTo("My favourites"); } @Test diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/306_ignore_loaded_dashboards.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/306_ignore_loaded_dashboards.rb index 88bd4213c6d..e9d5c586159 100644 --- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/306_ignore_loaded_dashboards.rb +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/306_ignore_loaded_dashboards.rb @@ -31,7 +31,7 @@ class IgnoreLoadedDashboards < ActiveRecord::Migration def self.up mark_dashboard_as_loaded('Projects') mark_dashboard_as_loaded('Treemap') - mark_dashboard_as_loaded('My Favourites') + mark_dashboard_as_loaded('My favourites') end def self.mark_dashboard_as_loaded(name)