spec: add to_datetime to SortFirst and SortLast
rails3 Change-Id: I3f61de3f8302b8ab3d11ef41590ee20b5b602b19 Reviewed-on: https://gerrit.instructure.com/29560 Tested-by: Jenkins <jenkins@instructure.com> Reviewed-by: Ryan Florence <ryanf@instructure.com> Product-Review: Ryan Florence <ryanf@instructure.com> QA-Review: Ryan Florence <ryanf@instructure.com>
This commit is contained in:
parent
8b4fbe22ac
commit
76dcd34f39
|
@ -30,6 +30,10 @@ class SortFirstClass
|
|||
nil
|
||||
end
|
||||
|
||||
def to_datetime
|
||||
-Date::Infinity.new
|
||||
end
|
||||
|
||||
def inspect
|
||||
'SortFirst'
|
||||
end
|
||||
|
|
|
@ -30,6 +30,10 @@ class SortLastClass
|
|||
nil
|
||||
end
|
||||
|
||||
def to_datetime
|
||||
Date::Infinity.new
|
||||
end
|
||||
|
||||
def inspect
|
||||
'SortLast'
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue