Maybe the test could be tighter by making sure the values are not just not nil but by making sure they are non-empty strings?  Alternatively, an "expects" could be used to override "Date.today" here: https://github.com/curationexperts/sufia/blob/master/lib/sufia/generic_file/actions.rb#L8 and you can check to make sure that the exact date string matches?