Sha256: 1081e0d1183b299b31876d87589f3ed2ada11f2abb97692649b2ea98b42ebcb2
Contents?: true
Size: 564 Bytes
Versions: 5
Compression:
Stored size: 564 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') require "rake" describe "blacklight:delete_old_searches" do before do @rake = Rake::Application.new Rake.application = @rake Rake.application.rake_require "../lib/railties/blacklight" Rake::Task.define_task(:environment) @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) @rake[@task_name].invoke(days_old) end end
Version data entries
5 entries across 5 versions & 1 rubygems