Sha256: 689c61f08fcd72f1af699a67ae278e36aa7edb999f4bd0ca7d69d47b1b5c55b0

Contents?: true

Size: 502 Bytes

Versions: 5

Compression:

Stored size: 502 Bytes

Contents

require "spec_helper"

describe Paymill::Base do
  describe "#parse_timestamps" do
    context "given #created_at is present" do
      it "creates a Time object" do
        base = Paymill::Base.new(created_at: 1362823928)
        base.created_at.class.should eql(Time)
      end
    end

    context "given #updated_at is present" do
      it "creates a Time object" do
        base = Paymill::Base.new(updated_at: 1362823928)
        base.updated_at.class.should eql(Time)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
paymill-0.5.1 spec/paymill/base_spec.rb
paymill-0.5.0 spec/paymill/base_spec.rb
paymill-0.4.0 spec/paymill/base_spec.rb
paymill-0.3.0 spec/paymill/base_spec.rb
paymill-0.2.2 spec/paymill/base_spec.rb