Skip to content

Commit

Permalink
Leave the project name field editable, fix the test.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlazio committed Oct 28, 2014
1 parent d08bb4b commit 50ee0b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions app/views/projects/edit.html.haml
Expand Up @@ -13,11 +13,7 @@
= f.label :name, class: 'control-label' do
Project name
.col-sm-10
= f.text_field :name, placeholder: "Example Project", class: "form-control", readonly: true
%p.hint
Rename the project at
%strong Rename repository
section.
= f.text_field :name, placeholder: "Example Project", class: "form-control", id: "project_name_edit"


.form-group
Expand Down
2 changes: 1 addition & 1 deletion features/steps/project/project.rb
Expand Up @@ -4,7 +4,7 @@ class Spinach::Features::Project < Spinach::FeatureSteps
include SharedPaths

step 'change project settings' do
fill_in 'project_name', with: 'NewName'
fill_in 'project_name_edit', with: 'NewName'
uncheck 'project_issues_enabled'
end

Expand Down

0 comments on commit 50ee0b8

Please sign in to comment.