Sha256: 86f2a7968c3d5f37c6822e66172d30a7ce346ad6bb876de86ac4a38c870032cb

Contents?: true

Size: 685 Bytes

Versions: 2

Compression:

Stored size: 685 Bytes

Contents

require 'spec_helper'

describe Twhois do
  
  it "should find author's twitter account" do
    user = Twhois.lookup('jimeh')
    user.screen_name.should == "jimeh"
    user.lang.should == "en"
    user.profile_image_url.should_not be_nil
    user.name.should_not be_nil
    user.location.should_not be_nil
    user.url.should_not be_nil
    user.followers_count.should_not be_nil
    user.description.should_not be_nil
    user.time_zone.should_not be_nil
    user.profile_background_image_url.should_not be_nil
    # ...that should be enough
  end
  
  it "should return error on unknown user" do
    user = Twhois.lookup('jimehoawhefoahelfhasdf')
    user.should be_nil
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
twhois-0.0.2 spec/twhois_spec.rb
twhois-0.0.1 spec/twhois_spec.rb