From 14ed010f7c2d493d5af418265b674551fdc35522 Mon Sep 17 00:00:00 2001 From: Dan Rice Date: Wed, 25 Jun 2014 17:44:24 -0400 Subject: [PATCH] Replace remaining RSpec 'should' with 'expect' --- features/step_definitions/todo_steps.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/step_definitions/todo_steps.rb b/features/step_definitions/todo_steps.rb index 1a26d905..83ed2975 100644 --- a/features/step_definitions/todo_steps.rb +++ b/features/step_definitions/todo_steps.rb @@ -150,10 +150,10 @@ Then /^I should (see|not see) the notes of "([^"]*)"$/ do |visible, todo_descrip todo = @current_user.todos.where(:description => todo_description).first expect(todo).to_not be_nil - page.find("div#notes_todo_#{todo.id}").send(visible=="see" ? "should" : "should_not", be_visible) + expect(page.find("div#notes_todo_#{todo.id}")).send(visible=="see" ? :to : :to_not, be_visible) end Then /^I should (see|not see) the empty tickler message$/ do |see| elem = find("div#no_todos_in_view") - elem.send(see=="see" ? "should" : "should_not", be_visible) + expect(elem).send(see=="see" ? :to : :to_not, be_visible) end