From ff27f769e96dbafadc4391910e5a66ecc0b2a37a Mon Sep 17 00:00:00 2001 From: Carsten Otto Date: Sat, 4 Apr 2015 16:59:52 +0200 Subject: [PATCH] swap expected/actual --- features/step_definitions/todo_steps.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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|