Sha256: 7c925337c5577952da59b328e971360717328950f805e8ee90f8e45a9249221c

Contents?: true

Size: 554 Bytes

Versions: 1

Compression:

Stored size: 554 Bytes

Contents

require 'simplecov'
require 'coveralls'
require 'tzinfo'
require 'vcr'
require 'timecop'
require 'time'
require 'minitest/autorun'
require 'ierail'

def get_original_time(t)
  @when = Time.parse(t.to_s)
  if TZInfo::Timezone.get('Europe/Dublin').current_period.dst?
    unless @when.zone == 'IST'
      @when -= @when.utc_offset - 3600
    end
  else
    @when -= @when.utc_offset
  end
  
  @when
end

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter
]
SimpleCov.start

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ierail-0.4.0 test/unit/helper.rb