diff --git a/features/compound_metric_configuration/edition.feature b/features/compound_metric_configuration/edition.feature index 9bda799..b887576 100644 --- a/features/compound_metric_configuration/edition.feature +++ b/features/compound_metric_configuration/edition.feature @@ -12,7 +12,7 @@ Feature: Compound Metric Configuration edition And I have a sample metric configuration within the given mezuro configuration And I have a sample compound metric configuration within the given mezuro configuration When I am at the Sample Configuration page - Then I should not see "Edit" + Then I should not see Edit within table @kalibro_restart Scenario: editing a compound metric configuration successfully @@ -64,4 +64,3 @@ Feature: Compound Metric Configuration edition And I fill the Code field with "Another_Code" And I press the Save button Then I should see "Code There is already a MetricConfiguration with code Another_Code! Please, choose another one." - diff --git a/features/metric_configuration/create.feature b/features/metric_configuration/create.feature index a7f5a07..c88ca29 100644 --- a/features/metric_configuration/create.feature +++ b/features/metric_configuration/create.feature @@ -7,7 +7,7 @@ Feature: Metric Configuration Creation Scenario: Should not create metric configurations without login Given I have a sample configuration And I am at the Sample Configuration page - Then I should not see New Metric Configuration + Then I should not see "New Metric Configuration" @kalibro_restart @javascript Scenario: metric configuration creation diff --git a/features/metric_configuration/edition.feature b/features/metric_configuration/edition.feature index ec6f3c7..97a4390 100644 --- a/features/metric_configuration/edition.feature +++ b/features/metric_configuration/edition.feature @@ -11,7 +11,7 @@ Feature: Metric Configuration edition And I have a sample reading group And I have a sample metric configuration within the given mezuro configuration When I am at the Sample Configuration page - Then I should not see "Edit" + Then I should not see Edit within table @kalibro_restart Scenario: editing a metric configuration successfully @@ -49,4 +49,4 @@ Feature: Metric Configuration edition And I fill the Weight field with "0" And I set the select field "Aggregation Form" as "Median" When I press the Save button - Then I should see "Weight must be greater than 0" \ No newline at end of file + Then I should see "Weight must be greater than 0" diff --git a/features/metric_configuration/listing.feature b/features/metric_configuration/listing.feature index c3a1158..ab3d2bc 100644 --- a/features/metric_configuration/listing.feature +++ b/features/metric_configuration/listing.feature @@ -34,4 +34,4 @@ Feature: Configuration listing And I am signed in And I have a sample configuration When I am at the Sample Configuration page - Then I should not see Add Metric link + Then I should not see "Add Metric" diff --git a/features/mezuro_configuration/create.feature b/features/mezuro_configuration/create.feature index 2f8a584..28eb498 100644 --- a/features/mezuro_configuration/create.feature +++ b/features/mezuro_configuration/create.feature @@ -6,7 +6,7 @@ Feature: Configuration Creation @kalibro_restart Scenario: Should not create configuration without login Given I am at the All Configurations page - Then I should not see New Configuration + Then I should not see "New Configuration" @kalibro_restart Scenario: configuration creation @@ -38,4 +38,4 @@ Feature: Configuration Creation And I fill the Name field with " " And I fill the Description field with "Web Service to collect metrics" When I press the Save button - Then I should see "Name can't be blank" \ No newline at end of file + Then I should see "Name can't be blank" diff --git a/features/mezuro_configuration/deletion.feature b/features/mezuro_configuration/deletion.feature index b04ab0b..d5e931a 100644 --- a/features/mezuro_configuration/deletion.feature +++ b/features/mezuro_configuration/deletion.feature @@ -7,7 +7,7 @@ Feature: Configuration Deletion Scenario: Should not delete a configuration without user authentication Given I have a sample configuration When I am at the Sample Configuration page - Then I should not see Destroy + Then I should not see "Destroy" @kalibro_restart Scenario: Should not delete a configuration that doesn't belongs to user @@ -15,7 +15,7 @@ Feature: Configuration Deletion And I am signed in And I have a sample configuration When I am at the Sample Configuration page - Then I should not see Destroy + Then I should not see "Destroy" @kalibro_restart Scenario: Should delete a configuration that I own diff --git a/features/mezuro_configuration/edition.feature b/features/mezuro_configuration/edition.feature index 2889f6d..b739b67 100644 --- a/features/mezuro_configuration/edition.feature +++ b/features/mezuro_configuration/edition.feature @@ -18,7 +18,7 @@ Feature: Configuration And I am signed in And I have a sample configuration And I am at the All Configurations page - Then I should not see "Edit" within "table tr td" + Then I should not see Edit within table @kalibro_restart Scenario: Should not render the edit page if the configuration doesn't belongs to the current user diff --git a/features/project/create.feature b/features/project/create.feature index f15848b..5101652 100644 --- a/features/project/create.feature +++ b/features/project/create.feature @@ -5,7 +5,7 @@ Feature: Project Creation Scenario: Should not create project without login Given I am at the All Projects page - Then I should not see New Project + Then I should not see "New Project" @kalibro_processor_restart Scenario: project creation @@ -44,4 +44,4 @@ Feature: Project Creation And I am at the homepage And I click the Your projects link When I click the New Project link - Then I should see "New Project" \ No newline at end of file + Then I should see "New Project" diff --git a/features/project/deletion.feature b/features/project/deletion.feature index 10ac75f..238fe9b 100644 --- a/features/project/deletion.feature +++ b/features/project/deletion.feature @@ -7,7 +7,7 @@ Feature: Project Deletion Scenario: Should not delete a project without user authetication Given I have a sample project When I am at the Sample Project page - Then I should not see Destroy + Then I should not see "Destroy" @kalibro_processor_restart Scenario: Should not delete a project that doesn't belongs to user @@ -15,7 +15,7 @@ Feature: Project Deletion And I am signed in And I have a sample project When I am at the Sample Project page - Then I should not see Destroy + Then I should not see "Destroy" @kalibro_processor_restart Scenario: Should delete a project that I own @@ -25,4 +25,4 @@ Feature: Project Deletion And I am at the Sample Project page When I click the Destroy Project link Then I should be in the All Projects page - And the sample project should not be there \ No newline at end of file + And the sample project should not be there diff --git a/features/project/edition.feature b/features/project/edition.feature index 24ee209..c66e078 100644 --- a/features/project/edition.feature +++ b/features/project/edition.feature @@ -18,7 +18,7 @@ Feature: Project And I am signed in And I have a sample project And I am at the All Projects page - Then I should not see "Edit" within "table tr td" + Then I should not see Edit within table @kalibro_processor_restart Scenario: Should not render the edit page if the project doesn't belongs to the current user diff --git a/features/project/show.feature b/features/project/show.feature index 47b29f7..84196c1 100644 --- a/features/project/show.feature +++ b/features/project/show.feature @@ -10,9 +10,9 @@ Scenario: Should not show the create repository link to user that doesn't own th And I have a sample configuration with native metrics And I have a sample repository within the sample project When I am at the Sample Project page - Then I should not see New Repository - And I should not see Destroy project - And I should not see Edit + Then I should not see "New Repository" + And I should not see "Destroy project" + And I should not see Edit within table @kalibro_processor_restart Scenario: Should show the create repository link the project owner @@ -35,7 +35,7 @@ Scenario: Considering the project has repositories And I have a sample configuration with native metrics And I have a sample repository within the sample project When I am at the Sample Project page - Then I should not see There are no Repositories yet! + Then I should not see "There are no Repositories yet!" @kalibro_processor_restart Scenario: Checking project contents diff --git a/features/reading_group/create.feature b/features/reading_group/create.feature index 05d4514..6ed1f08 100644 --- a/features/reading_group/create.feature +++ b/features/reading_group/create.feature @@ -6,7 +6,7 @@ Feature: Reading Group Creation @kalibro_restart Scenario: Should not create reading groups without login Given I am at the All Reading Groups page - Then I should not see New Reading Group + Then I should not see "New Reading Group" @kalibro_restart Scenario: Reading Group creation @@ -40,4 +40,4 @@ Scenario: reading group creation with blank name And I fill the Name field with " " And I fill the Description field with "Anything" When I press the Save button - Then I should see "Name can't be blank" \ No newline at end of file + Then I should see "Name can't be blank" diff --git a/features/reading_group/delete.feature b/features/reading_group/delete.feature index 6b2cfcf..ae6ff72 100644 --- a/features/reading_group/delete.feature +++ b/features/reading_group/delete.feature @@ -7,7 +7,7 @@ Feature: Reading Group Deletion Scenario: Should not delete a reading group without user authentication Given I have a sample reading group When I visit the Sample Reading Group page - Then I should not see Destroy + Then I should not see "Destroy" @kalibro_restart Scenario: Should not delete a reading group that doesn't belongs to user @@ -15,7 +15,7 @@ Feature: Reading Group Deletion And I am signed in And I have a sample reading group When I visit the Sample Reading Group page - Then I should not see Destroy + Then I should not see "Destroy" @kalibro_restart Scenario: Should delete a reading group that I own diff --git a/features/reading_group/edit.feature b/features/reading_group/edit.feature index 2f3e398..76b656b 100644 --- a/features/reading_group/edit.feature +++ b/features/reading_group/edit.feature @@ -18,7 +18,7 @@ Feature: Reading Group And I am signed in And I have a sample reading group And I am at the All Reading Groups page - Then I should not see "Edit" within "table tr td" + Then I should not see Edit within table @kalibro_restart Scenario: Should not render the edit page if the reading group doesn't belongs to the current user diff --git a/features/reading_group/show.feature b/features/reading_group/show.feature index a8fbec8..3b1517f 100644 --- a/features/reading_group/show.feature +++ b/features/reading_group/show.feature @@ -10,9 +10,9 @@ Scenario: Should not show the create, edit and destroy reading link to user that And I have a sample reading within the sample reading group When I visit the Sample Reading Group page Then I should be in the Sample Reading Group page - And I should not see New Reading - And I should not see Edit - And I should not see Destroy + And I should not see "New Reading" + And I should not see Edit within table + And I should not see "Destroy" @kalibro_restart Scenario: Should show the links for the user that owns the reading group @@ -33,7 +33,7 @@ Scenario: Should show the information of the sample reading And I have a sample reading within the sample reading group When I visit the Sample Reading Group page Then I should be in the Sample Reading Group page - And I should not see There are no Readings yet! + And I should not see "There are no Readings yet!" And I should see "Label" And I should see "Grade" And I should see "Color" diff --git a/features/step_definitions/project_steps.rb b/features/step_definitions/project_steps.rb index a0e1742..c19aae8 100644 --- a/features/step_definitions/project_steps.rb +++ b/features/step_definitions/project_steps.rb @@ -38,12 +38,11 @@ Given(/^I am at the New Project page$/) do visit new_project_path end -Then(/^I should not see (.+)$/) do |text| +Then(/^I should not see "(.+)"$/) do |text| expect(page).to_not have_content(text) end -#FIXME: this is step is not matched -Then(/^I should not see "(.+)"" within "(.+)"$/) do |text, selector| +Then(/^I should not see (.+) within (.+)$/) do |text, selector| expect(page.find(selector)).to_not have_content(text) end -- libgit2 0.21.2