Sha256: c315918d258f51c34f266bc7e7473f860a574d5246fb8d7b552aa427bbc94a3f

Contents?: true

Size: 309 Bytes

Versions: 1

Compression:

Stored size: 309 Bytes

Contents

require "spec_helper"

describe Redbooth::Base do
  describe "#parse_timestamps" do
    context "given #created_time is present" do
      it "creates a Time object" do
        base = Redbooth::Base.new(created_time: 1358300444)
        expect(base.created_time.class).to eql(Time)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redbooth-ruby-0.0.2 spec/redbooth/base_spec.rb