Sha256: 0d14d5a588d55d4aa6a54ef4311212f9a36ddb2ec743a409423f0f8f06ba6151

Contents?: true

Size: 316 Bytes

Versions: 8

Compression:

Stored size: 316 Bytes

Contents

require 'spec_helper'

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
redbooth-ruby-0.2.3 spec/redbooth-ruby/base_spec.rb
redbooth-ruby-0.2.2 spec/redbooth-ruby/base_spec.rb
redbooth-ruby-0.2.1 spec/redbooth-ruby/base_spec.rb
redbooth-ruby-0.2.0 spec/redbooth-ruby/base_spec.rb
redbooth-ruby-0.1.4 spec/redbooth-ruby/base_spec.rb
redbooth-ruby-0.1.3 spec/redbooth-ruby/base_spec.rb
redbooth-ruby-0.1.1 spec/redbooth-ruby/base_spec.rb
redbooth-ruby-0.1.0 spec/redbooth-ruby/base_spec.rb