Commit cbebccaaa54695cbc005a65c55e026288b03e110

Authored by Antonio Terceiro
Committed by Daniela Feitosa
1 parent 16280dec

Allow admin to change environment name

app/views/admin_panel/site_info.rhtml
... ... @@ -6,6 +6,8 @@
6 6  
7 7 <% labelled_form_for :environment, @environment do |f| %>
8 8  
  9 + <%= labelled_form_field(_('Site name'), f.text_field(:name)) %>
  10 +
9 11 <%= labelled_form_field _('Homepage content'), text_area(:environment, :description, :cols => 40, :style => 'width: 90%') %>
10 12  
11 13 <% button_bar do %>
... ...
features/environment_name.feature 0 → 100644
... ... @@ -0,0 +1,12 @@
  1 +Feature: setting environment name
  2 + As an environment administrator
  3 + I want to change the name of the environment
  4 + So that it appears in the window's title bar
  5 +
  6 + Scenario: setting environment name through administration panel
  7 + Given I am logged in as admin
  8 + When I follow "Administration"
  9 + And I follow "Edit site info"
  10 + And I fill in "Name" with "My environment"
  11 + And I press "Save"
  12 + Then I should see "My environment" within "title"
... ...