Commit 1e2f7c543a4bb5c8467f244bbbb3c9ef3455220a

Authored by Rafael Manzo
Committed by Rafael Manzo
1 parent 57d0f6f4

Finished the project edtion acceptance tests

Tests to make sure that the values changed
features/project.feature
... ... @@ -64,3 +64,14 @@ Feature: Project
64 64 Then The field "project[name]" should be filled with the sample project "name"
65 65 And The field "project[description]" should be filled with the sample project "description"
66 66  
  67 + @kalibro_restart
  68 + Scenario: After project edition should update the information
  69 + Given I am a regular user
  70 + And I am signed in
  71 + And I have a sample project
  72 + And I am at the sample project edit page
  73 + And I fill the Name field with Kalibro
  74 + And I fill the Description field with Web Service to collect metrics
  75 + When I press the Update button
  76 + Then I should see Kalibro
  77 + And I should see Web Service to collect metrics
67 78 \ No newline at end of file
... ...
features/step_definitions/project_steps.rb
... ... @@ -7,7 +7,11 @@ Given(/^I have a sample project$/) do
7 7 end
8 8  
9 9 Given(/^I am at the Sample Project page$/) do
10   - visit "#{projects_path}/#{@project.id}"
  10 + visit project_path(@project.id)
  11 +end
  12 +
  13 +Given(/^I am at the sample project edit page$/) do
  14 + visit edit_project_path(@project.id)
11 15 end
12 16  
13 17 Then(/^I should not see (.+)$/) do |text|
... ...