}
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");
@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);
@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);