Sha256: 04e3ba689d39e34f72894aea38d99d807ad11d44c27d3bffa6423a87fd08e159

Contents?: true

Size: 373 Bytes

Versions: 9

Compression:

Stored size: 373 Bytes

Contents

require 'spec_helper'

describe Aptible::CLI::Helpers::DateHelpers do
  subject { Class.new.send(:include, described_class).new }

  describe '#utc_string' do
    it 'should accept a Datetime string from our API and return a UTC string' do
      result = subject.utc_string('2023-09-05T22:00:00.000Z')
      expect(result).to eq '2023-09-05 22:00:00 UTC'
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
aptible-cli-0.24.2 spec/aptible/cli/helpers/date_helpers_spec.rb
aptible-cli-0.24.1 spec/aptible/cli/helpers/date_helpers_spec.rb
aptible-cli-0.24.0 spec/aptible/cli/helpers/date_helpers_spec.rb
aptible-cli-0.23.0 spec/aptible/cli/helpers/date_helpers_spec.rb
aptible-cli-0.22.0 spec/aptible/cli/helpers/date_helpers_spec.rb
aptible-cli-0.21.0 spec/aptible/cli/helpers/date_helpers_spec.rb
aptible-cli-0.20.0 spec/aptible/cli/helpers/date_helpers_spec.rb
aptible-cli-0.19.9 spec/aptible/cli/helpers/date_helpers_spec.rb
aptible-cli-0.19.7 spec/aptible/cli/helpers/date_helpers_spec.rb