From e5294f070f6e7b63b3ae9886e796ed8a0c849cfa Mon Sep 17 00:00:00 2001 From: Carsten Otto Date: Thu, 2 Apr 2015 13:59:25 +0200 Subject: [PATCH] improve grammar in test --- features/add_todo_from_cli.feature | 2 +- features/step_definitions/project_steps.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/add_todo_from_cli.feature b/features/add_todo_from_cli.feature index 01e0c842..442f74e5 100644 --- a/features/add_todo_from_cli.feature +++ b/features/add_todo_from_cli.feature @@ -33,4 +33,4 @@ Feature: Add a todo to Tracks on console """ When I execute the add-todo script - Then I should have 2 todo in project "Project A" + Then I should have 2 todos in project "Project A" diff --git a/features/step_definitions/project_steps.rb b/features/step_definitions/project_steps.rb index 59592ac5..2824fbdd 100644 --- a/features/step_definitions/project_steps.rb +++ b/features/step_definitions/project_steps.rb @@ -306,7 +306,7 @@ Then /^I should have a project called "([^"]*)"$/ do |project_name| expect(project).to_not be_nil end -Then /^I should have (\d+) todo in project "([^"]*)"$/ do |todo_count, project_name| +Then /^I should have (\d+) todos? in project "([^"]*)"$/ do |todo_count, project_name| project = @current_user.projects.where(:name => project_name).first expect(project).to_not be_nil expect(project.todos.count).to eq(todo_count.to_i)