Updated

spec/support / timestamps_spec_helper.rb

A
9 lines of codes
2 methods
3.1 complexity/method
1 churn
6.18 complexity
0 duplications
module TimestampsSpecHelper
  1. TimestampsSpecHelper has no descriptive comment
def timestampify(time)
  1. TimestampsSpecHelper#timestampify doesn't depend on instance state (maybe move it to another class?)
time.getutc.iso8601(3) unless time.nil?
  1. TimestampsSpecHelper#timestampify performs a nil-check
end def datestampify(date)
  1. TimestampsSpecHelper#datestampify doesn't depend on instance state (maybe move it to another class?)
date.strftime("%Y-%m-%d") unless date.nil?
  1. TimestampsSpecHelper#datestampify performs a nil-check
end end