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)