spec/lib/tasks/blacklight_task_spec.rb in blacklight-5.5.1 vs spec/lib/tasks/blacklight_task_spec.rb in blacklight-5.5.2

- old
+ new

@@ -12,10 +12,10 @@ @task_name = "blacklight:delete_old_searches" end it "should call Search.delete_old_searches" do days_old = 7 - Search.should_receive(:delete_old_searches).with(days_old) + allow(Search).to receive(:delete_old_searches).with(days_old) @rake[@task_name].invoke(days_old) end end