spec/twitter/client/timeline_spec.rb in twitter4r-0.2.1 vs spec/twitter/client/timeline_spec.rb in twitter4r-0.2.2

- old
+ new

@@ -61,9 +61,19 @@ @client.should_receive(:create_http_get_request).with(@uris[:friends], @params[:friends]).and_return(@request) timeline = @client.timeline_for(:friends, @params[:friends]) timeline.should eql(@timeline) end + it "should raise an ArgumentError if type given is not valid" do + lambda { + @client.timeline_for(:crap) + }.should raise_error(ArgumentError) + + lambda { + @client.timeline_for(:crap, @params[:friends]) + }.should raise_error(ArgumentError) + end + after(:each) do nilize(@client) end end