Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed forms not to show field building #5

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/views/projects/edit.html.haml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- semantic_form_for @project do |form|
= form.inputs
= form.inputs :name, :url, :email, :branch, :deploy_command, :build_command
= form.buttons
2 changes: 1 addition & 1 deletion app/views/projects/new.html.haml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- semantic_form_for @project do |form|
= form.inputs
= form.inputs :name, :url, :email, :branch, :deploy_command, :build_command
= form.buttons
2 changes: 1 addition & 1 deletion app/views/shared/_projects.haml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- for project in @projects do
- @projects.each do |project|
= link_to render(:partial => "shared/project_status", :locals => {:project => project}), project_path(project)
4 changes: 4 additions & 0 deletions features/manage_project.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Feature: Manage projects

Scenario: Register new project
Given I am on the new projects page
Then I should not see /Building/

When I fill in "project_name" with "Geni"
And I fill in "project_url" with "git://fake"
And I fill in "project_email" with "fake@too.com"
Expand All @@ -12,6 +14,8 @@ Feature: Manage projects
Scenario: Update a project
Given I have a project
And I am on the edit project page
Then I should not see /Building/

When I fill in "project_name" with "Bluepump"
When I fill in "project_url" with "gitFake"
And I press "Save Project"
Expand Down