Sha256: e7d37d6446800d3b4cdce9538a9dc3d3a63c381db4e76af1c59f62f9bf433842

Contents?: true

Size: 429 Bytes

Versions: 16

Compression:

Stored size: 429 Bytes

Contents

require 'helper'

describe Twitter::Action do

  describe "#created_at" do
    it "returns a Time when created_at is set" do
      user = Twitter::User.new(:id => 7505382, :created_at => "Mon Jul 16 12:59:01 +0000 2007")
      expect(user.created_at).to be_a Time
    end
    it "returns nil when created_at is not set" do
      user = Twitter::User.new(:id => 7505382)
      expect(user.created_at).to be_nil
    end
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
twitter-4.8.1 spec/twitter/action_spec.rb
twitter-4.8.0 spec/twitter/action_spec.rb
twitter-4.7.0 spec/twitter/action_spec.rb
twitter-4.6.2 spec/twitter/action_spec.rb
twitter-4.6.1 spec/twitter/action_spec.rb
twitter-4.6.0 spec/twitter/action_spec.rb
twitter-4.5.0 spec/twitter/action_spec.rb
twitter-4.4.4 spec/twitter/action_spec.rb
twitter-4.4.3 spec/twitter/action_spec.rb
twitter-4.4.2 spec/twitter/action_spec.rb
twitter-4.4.1 spec/twitter/action_spec.rb
twitter-4.4.0 spec/twitter/action_spec.rb
twitter-4.3.0 spec/twitter/action_spec.rb
twitter-4.2.0 spec/twitter/action_spec.rb
twitter-4.1.2 spec/twitter/action_spec.rb
twitter-4.1.1 spec/twitter/action_spec.rb