- Twitter::Client.configure
- should respond to :configure class method
- should not accept calls that do not specify blocks
- Twitter::Client.configure with mocked @config
- should not raise an error when passing block
- should yield a Twitter::Client object to block
- Twitter::Config#eql?
- should return true for two logically equivalent objects
- should return false for two logically different objects
- should return true for references to the same object in memory
- Twitter::ClassUtilMixin mixed-in class
- should have Twitter::ClassUtilMixin as an included module
- should set attributes passed in the hash to TestClass.new
- should not set attributes passed in the hash that are not attributes in TestClass.new
- Twitter::RESTError#to_s
- should return @expected_message
- Twitter::Status#eql?
- should return true when non-transient object attributes are eql?
- should return false when not all non-transient object attributes are eql?
- should return true when comparing same object to itself
- Twitter::User#eql?
- should return true when non-transient object attributes are eql?
- should return false when not all non-transient object attributes are eql?
- should return true when comparing same object to itself
- Twitter::ClassUtilMixin#require_block
- should respond to :require_block
- should raise ArgumentError when block not given
- should not raise ArgumentError when block is given
- Twitter::Status unmarshaling
- should respond to unmarshal class method
- should return expected Twitter::Status object for singular case
- should return expected array of Twitter::Status objects for plural case
- Twitter::User unmarshaling
- should respond to unmarshal class method
- should return expected arry of Twitter::User objects for plural case
- should return expected Twitter::User object for singular case
- Twitter::ModelMixin#to_hash
- should return expected hash representation of given model object
- Twitter::User.find
- should invoke given Twitter::Client's #user method with expected arguments
- Twitter::Status.find
- should invoke given Twitter::Client's #status method with expected arguments
- Test::Model#bless
- should delegate to #basic_bless
- should set client attribute of self
- Twitter::User#is_me?
- should return true when Twitter::User object represents authenticated user of client context
- should return false when Twitter::User object does not represent authenticated user of client context
- Twitter::User#bless(client)
- should add a followers method
- should not add a followers method
- Twitter::User#friends
- should delegate to @client.user(@id, :friends)
- Twitter::User#followers
- should delegate to @client.my(:followers)
- Test::Model#to_i
- should return @id attribute
- Test::Model#to_s
- should return expected text when a @text attribute exists for the model
- Twitter::Message.find
- should raise NotImplementedError due to Twitter (as opposed to Twitter4R) API limitation
- Twitter::Status.create
- should invoke #status(:post, text) on client context given
- should raise an ArgumentError when no client is given in params
- should raise an ArgumentError when no text is given in params
- should raise an ArgumentError when text given in params is not a String
- should raise an ArgumentError when client context given in params is not a Twitter::Client object
- Twitter::Message.create
- should invoke #message(:post, text, recipient) on client context given
- should raise an ArgumentError if no client context is given in params
- should raise an ArgumentError if client conext given in params is not a Twitter::Client object
- should raise an ArgumentError if no text is given in params
- should raise an ArgumentError if text given in params is not a String
- should raise an ArgumentError if no recipient is given in params
- should raise an ArgumentError if recipient given in params is not a Twitter::User, Integer or String object
- Twitter::User#befriend
- should invoke #friend(:add, user) on client context
- Twitter::User#defriend
- should invoke #friend(:remove, user) on client context
- Twitter::Status#to_s
- should render text attribute
- Twitter::Message#to_s
- should render text attribute
- Twitter::Client#status
- should return nil if nil is passed as value argument for :get case
- should not call @twitter#http_connect when passing nil for value argument in :get case
- should create expected HTTP GET request for :get case
- should invoke @twitter#create_http_get_request with given parameters equivalent to {:id => value.to_i} for :get case
- should return nil if nil is passed as value argument for :post case
- should not call @twitter#http_connect when passing nil for value argument in :post case
- should create expected HTTP POST request for :post case
- should return nil if nil is passed as value argument for :delete case
- should not call @twitter#http_connect when passing nil for value argument in :delete case
- should create expected HTTP DELETE request for :delete case
- should invoke @twitter#create_http_get_request with given parameters equivalent to {:id => value.to_i} for :delete case
- should raise an ArgumentError when given an invalid status action
- Twitter::Client Timeline API
- should respond to instance method #timeline_for
- should call #http_get with expected parameters for :public case
- should yield to block for each status in timeline
- should generate expected HTTP GET request for generic :public case
- should generate expected HTTP GET request for :public case with expected parameters
- should generate expected HTTP GET request for generic :friends case
- should generate expected HTTP GET request for :friends case with expected parameters
- should raise an ArgumentError if type given is not valid
- Twitter::Client#user(id, :followers)
- should raise ArgumentError
- Twitter::Client#user(id, :info)
- should create expected HTTP GET request when giving numeric user id
- should create expected HTTP GET request when giving screen name
- should bless model returned when giving numeric user id
- should bless model returned when giving screen name
- Twitter::Client#user(id, :friends)
- should create expected HTTP GET request when giving numeric user id
- should invoke #to_i on Twitter::User objecct given
- should create expected HTTP GET request when giving Twitter::User object
- should create expected HTTP GET request when giving screen name
- should bless model returned when giving numeric id
- should bless model returned when giving Twitter::User object
- should bless model returned when giving screen name
- Twitter::Client#my(:info)
- should create expected HTTP GET request
- should bless the model object returned
- should return expected user object
- Twitter::Client#my(:friends)
- should create expected HTTP GET request
- should bless models returned
- should return expected Array of friends
- Twitter::Client#my(:invalid_action)
- should raise ArgumentError for invalid user action
- Twitter::Client#messages
- should create expected HTTP GET request for :received case
- should bless the Array returned from Twitter for :received case
- should create expected HTTP GET request for :sent case
- should bless the Array returned from Twitter for :sent case
- should raise an ArgumentError when giving an invalid messaging action
- should accept an options Hash for paging
- should generate expected GET HTTP request for paging case
- should bless models for paging case
- Twitter::Client#message
- should invoke #http_connect with expected arguments for :post case
- should create expected HTTP POST request for :post case
- should bless returned Twitter::Message object for :post case
- should create expected HTTP DELETE request for :delete case
- should bless returned Twitter::Message object for :delete case
- should invoke #to_i on message object passed in for :delete case
- should raise an ArgumentError when giving an invalid messaging action
- should raise an ArgumentError for :post case if user argument is not supplied
- should raise an ArgumentError for :post case if user argument is nil
- Twitter::Client
- .new should accept login and password as initializer hash keys and set the values to instance values
- Twitter::Client#http_header
- should always return expected HTTP headers
- should cache HTTP headers Hash in class variable after first invocation
- Twitter::Client#create_http_get_request
- should create new Net::HTTP::Get object with expected initialization arguments
- Twitter::Client#create_http_post_request
- should create new Net::HTTP::Post object with expected initialization arguments
- Twitter::Client#create_http_delete_request
- should create new Net::HTTP::Delete object with expected initialization arguments
- Twitter::Client#http_connect
- should yield HTTP connection when response is good
- should yield HTTP connection when response is bad
- Twitter::Client#bless_model
- should recieve #client= message on given model to self
- should set client attribute on given model to self
- should return nil when receiving nil and not raise any exceptions
- should raise an error if passing in a non-nil object that doesn't not respond to the :client= message
- Twitter::Client#bless_models
- should set client attributes for each model in given Array to self
- should set client attribute for singular model given to self
- should delegate to bless_model for singular model case
- should return nil when receiving nil and not raise any exceptions
- Twitter::Client#friend
- should create expected HTTP GET request for :add case using integer user ID
- should create expected HTTP GET request for :add case using screen name
- should create expected HTTP GET request for :add case using Twitter::User object
- should create expected HTTP GET request for :remove case using integer user ID
- should create expected HTTP GET request for :remove case using screen name
- should create expected HTTP GET request for :remove case using Twitter::User object
- should bless user model returned for :add case
- should bless user model returned for :remove case
- should raise ArgumentError if action given is not valid
- Twitter::Version.to_version
- should return 0.2.5
- Twitter::Version.to_name
- should return 0_2_5
- String representing a class name
- should be downcased (minus module namespaces) when xmlized
- Twitter::User Rails extensions
- should invoke #to_param as expected
- should return string representation for id for #to_param
- should return output from JSON.unparse for #to_json
- should return XmlSerializer string output for #to_xml
- Twitter::Status Rails extensions
- should invoke #to_param as expected
- should return string representation for id for #to_param
- should return output from JSON.unparse for #to_json
- should return XmlSerializer string output for #to_xml
- Twitter::Message Rails extensions
- should invoke #to_param as expected
- should return string representation for id for #to_param
- should return output from JSON.unparse for #to_json
- should return XmlSerializer string output for #to_xml
- Twitter::RESTError Rails extensions
- should return a Hash of attribute name-value pairs for #to_hash
- should invoke XmlSerializer for #to_xml
- should return expected JSON for #to_json
- Twitter::Meta cache policy
- should store value returned from project_files in @project_files after first glob
- should store value returned from spec_files in @spec_files after first glob
- Twitter::Meta
- should load and return YAML file into Hash object upon #pkg_info call
- should return the embedded hash responding to key 'spec' of #pkg_info call upon #spec_info call
- should return list of files matching ROOT_DIR/lib/**/*.rb upon #project_files call
- should return list of files matching ROOT_DIR/spec/**/*.rb upon #spec_files call
- should return Gem specification based on YAML file contents and #project_files and #spec_files return values
- Twitter::Client.from_config
- should load YAML file for instance configuration
- Twitter::Client#featured(:users)
- should create expected HTTP GET request
- should bless Twitter::User models returned
- Twitter::User.featured
- should delegate #featured(:users) message to given client context
- Hash#to_http_str
- should generate expected URL encoded string
- Time#to_s
- should output RFC2822 compliant string
- should respond to #old_to_s