diff --git a/features/step_definitions/todo_steps.rb b/features/step_definitions/todo_steps.rb index 83ed2975..b8216416 100644 --- a/features/step_definitions/todo_steps.rb +++ b/features/step_definitions/todo_steps.rb @@ -116,7 +116,7 @@ end Then /^the project field of the new todo form should contain "([^"]*)"$/ do |project_name| xpath= "//form[@id='todo-form-new-action']/input[@id='todo_project_name']" - expect(project_name).to eq(page.find(:xpath, xpath).value) + expect(page.find(:xpath, xpath).value).to eq(project_name) end Then /^the default context of the new todo form should be "([^"]*)"$/ do |context_name|