Commit caa54550fc606395b9736576471d4c99f4245e0b

Authored by Daniela Feitosa
1 parent cbebccaa

Removing extra label for environment_name field

app/views/admin_panel/site_info.rhtml
@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
6 6
7 <% labelled_form_for :environment, @environment do |f| %> 7 <% labelled_form_for :environment, @environment do |f| %>
8 8
9 - <%= labelled_form_field(_('Site name'), f.text_field(:name)) %> 9 + <%= labelled_form_field(_('Site name'), text_field(:environment, :name)) %>
10 10
11 <%= labelled_form_field _('Homepage content'), text_area(:environment, :description, :cols => 40, :style => 'width: 90%') %> 11 <%= labelled_form_field _('Homepage content'), text_area(:environment, :description, :cols => 40, :style => 'width: 90%') %>
12 12
features/environment_name.feature
@@ -7,6 +7,6 @@ Feature: setting environment name @@ -7,6 +7,6 @@ Feature: setting environment name
7 Given I am logged in as admin 7 Given I am logged in as admin
8 When I follow "Administration" 8 When I follow "Administration"
9 And I follow "Edit site info" 9 And I follow "Edit site info"
10 - And I fill in "Name" with "My environment" 10 + And I fill in "Site name" with "My environment"
11 And I press "Save" 11 And I press "Save"
12 Then I should see "My environment" within "title" 12 Then I should see "My environment" within "title"