Sha256: a4b98708e4c598cf2d6748ecff016d8771f717eb1654b3535d21ecd43afce64b

Contents?: true

Size: 267 Bytes

Versions: 5

Compression:

Stored size: 267 Bytes

Contents

require 'spec_helper'

describe Chicago::ETL::Transformations::AddInsertTimestamp do
  it "adds a timestamp in UTC in the _inserted_at field" do
    time = subject.call({}).first[:_inserted_at]
    time.should be_kind_of(Time)
    time.zone.should == "UTC"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
chicago-etl-0.0.13 spec/etl/transformations/add_insert_timestamp_spec.rb
chicago-etl-0.0.12 spec/etl/transformations/add_insert_timestamp_spec.rb
chicago-etl-0.0.11 spec/etl/transformations/add_insert_timestamp_spec.rb
chicago-etl-0.0.10 spec/etl/transformations/add_insert_timestamp_spec.rb
chicago-etl-0.0.9 spec/etl/transformations/add_insert_timestamp_spec.rb