]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4843 Rename the property sonar.web.dev to sonar.rails.dev
authorSimon Brandhof <simon.brandhof@gmail.com>
Sat, 15 Mar 2014 21:57:10 +0000 (22:57 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Sat, 15 Mar 2014 21:57:10 +0000 (22:57 +0100)
sonar-application/src/main/java/org/sonar/application/Webapp.java
sonar-application/src/test/java/org/sonar/application/WebappTest.java

index 223de97c025bd9895c35a9ff55d94064d05fba32..cda49acd69e07e6a25759d5d10e3dd1e64ec2c14 100644 (file)
@@ -57,10 +57,10 @@ class Webapp {
   }
 
   static void configureRailsMode(Props props, Context context) {
-    if (props.booleanOf("sonar.web.dev")) {
+    if (props.booleanOf("sonar.rails.dev")) {
       context.addParameter(RAILS_ENV, "development");
       context.addParameter(JRUBY_MAX_RUNTIMES, "3");
-      LoggerFactory.getLogger(Webapp.class).warn("\n\n\n------ DEVELOPMENT MODE IS ENABLED ------\n\n\n");
+      LoggerFactory.getLogger(Webapp.class).warn("\n\n\n------ RAILS DEVELOPMENT MODE IS ENABLED ------\n\n\n");
     } else {
       context.addParameter(RAILS_ENV, "production");
       context.addParameter(JRUBY_MAX_RUNTIMES, "1");
index 82fdd5405d47fef86c5e433f06bb19704013da31..2ddb47b5460b0d6280c78efd20aa0dcf5c411357 100644 (file)
@@ -70,7 +70,7 @@ public class WebappTest {
   @Test
   public void configure_dev_mode() throws Exception {
     Props props = mock(Props.class);
-    when(props.booleanOf("sonar.web.dev")).thenReturn(true);
+    when(props.booleanOf("sonar.rails.dev")).thenReturn(true);
     Context context = mock(Context.class);
 
     Webapp.configureRailsMode(props, context);
@@ -82,7 +82,7 @@ public class WebappTest {
   @Test
   public void configure_production_mode() throws Exception {
     Props props = mock(Props.class);
-    when(props.booleanOf("sonar.web.dev")).thenReturn(false);
+    when(props.booleanOf("sonar.rails.dev")).thenReturn(false);
     Context context = mock(Context.class);
 
     Webapp.configureRailsMode(props, context);