Skip to content
Browse files

Fix search specs

  • Loading branch information...
1 parent fbff053 commit 4d023e2c3daa49b48ff1a22b89dc55fc815c45e5 @sferik committed Sep 19, 2012
Showing with 150 additions and 558 deletions.
  1. +1 −456 spec/fixtures/search.json
  2. +149 −102 spec/search_spec.rb
View
457 spec/fixtures/search.json
@@ -1,456 +1 @@
-{
- "completed_in": 0.036,
- "max_id": 194521262415032320,
- "max_id_str": "194521262415032320",
- "next_page": "?page=2&max_id=194521262415032320&q=twitter",
- "page": 1,
- "query": "twitter",
- "refresh_url": "?since_id=194521262415032320&q=twitter",
- "results": [
- {
- "created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
- "from_user": "Somedude",
- "from_user_id": 818993897,
- "from_user_id_str": "818993897",
- "from_user_name": "Random Dude",
- "geo": null,
- "id": 194521323202624150,
- "id_str": "194521323202624150",
- "iso_language_code": "en",
- "metadata": {
- "result_type": "recent"
- },
- "profile_image_url": "http://a0.twimg.com/profile_images/1014656526/pic.jpg",
- "profile_image_url_https": "https://si0.twimg.com/profile_images/1014656526/pic.jpg",
- "source": "<a href="http://twitter.com/">web</a>",
- "text": "Gotta get right with twitter",
- "to_user": null,
- "to_user_id": null,
- "to_user_id_str": null,
- "to_user_name": null
- },
- {
- "created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
- "from_user": "TestMan",
- "from_user_id": 32702507980,
- "from_user_id_str": "32702507980",
- "from_user_name": "Test Account",
- "geo": null,
- "id": 194526951936212623,
- "id_str": "194526951936212623",
- "iso_language_code": "en",
- "metadata": {
- "result_type": "recent"
- },
- "profile_image_url": "http://a0.twimg.com/profile_images/2147508883/IMG-20120404-WA003_normal.jpg",
- "profile_image_url_https": "https://si0.twimg.com/profile_images/2147508883/IMG-20120404-WA003_normal.jpg",
- "source": "<a href="http://blackberry.com/twitter" rel="nofollow">Twitter for BlackBerry®</a>",
- "text": "Twitter to Facebook test",
- "to_user": null,
- "to_user_id": null,
- "to_user_id_str": null,
- "to_user_name": null
- },
- {
- "created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
- "from_user": "Jena_Jones",
- "from_user_id": 13938181651,
- "from_user_id_str": "13938181651",
- "from_user_name": "Jena Jones",
- "geo": null,
- "id": 194521346690562622,
- "id_str": "194521346690562622",
- "iso_language_code": "en",
- "metadata": {
- "result_type": "recent"
- },
- "profile_image_url": "http://a0.twimg.com/profile_images/2156571407/543631_337343819653633_100001340549098_850013_1999940127_n_normal.jpg",
- "profile_image_url_https": "https://si0.twimg.com/profile_images/2156571407/543631_337343819653633_100001340549098_850013_1999940127_n_normal.jpg",
- "source": "<a href="http://mobile.twitter.com" rel="nofollow">Mobile Web</a>",
- "text": "test my new twitter..... :)",
- "to_user": null,
- "to_user_id": null,
- "to_user_id_str": null,
- "to_user_name": null
- },
- {
- "created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
- "from_user": "misterpic",
- "from_user_id": 259342250,
- "from_user_id_str": "259342250",
- "from_user_name": "mister pic!",
- "geo": null,
- "id": 194521262134160820,
- "id_str": "194521262134160820",
- "iso_language_code": "en",
- "metadata": {
- "result_type": "recent"
- },
- "profile_image_url": "http://a0.twimg.com/profile_images/2159952653/P2191655_normal.JPG",
- "profile_image_url_https": "https://si0.twimg.com/profile_images/2159952653/P2191655_normal.JPG",
- "source": "<a href="http://twitter.com/#!/download/iphone" rel="nofollow">Twitter for iPhone</a>",
- "text": "Wallah there should be a test before you can get a twitter account some people are so dumb... better",
- "to_user": null,
- "to_user_id": null,
- "to_user_id_str": null,
- "to_user_name": null
- },
- {
- "created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
- "from_user": "RRabbit",
- "from_user_id": 91022555146,
- "from_user_id_str": "91022555146",
- "from_user_name": "Rogger Rabbit",
- "geo": null,
- "id": 194521016652621340,
- "id_str": "194521016652621340",
- "iso_language_code": "en",
- "metadata": {
- "result_type": "recent"
- },
- "profile_image_url": "http://a0.twimg.com/profile_images/1663790229/390753_10150394068222898_738242897_8656853_1501249832_n_1__normal.jpg",
- "profile_image_url_https": "https://si0.twimg.com/profile_images/1663790229/390753_10150394068222898_738242897_8656853_1501249832_n_1__normal.jpg",
- "source": "<a href="http://twitter.com/#!/download/iphone" rel="nofollow">Twitter for iPhone</a>",
- "text": "Twitter is kinda fun... Kinda!",
- "to_user": null,
- "to_user_id": null,
- "to_user_id_str": null,
- "to_user_name": null
- },
- {
- "created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
- "from_user": "JessRoveel",
- "from_user_id": 99818387,
- "from_user_id_str": "99818387",
- "from_user_name": "Jess de Platypus♥",
- "geo": null,
- "id": 194521262415032320,
- "id_str": "194521262415032320",
- "iso_language_code": "es",
- "metadata": {
- "result_type": "recent"
- },
- "profile_image_url": "http://a0.twimg.com/profile_images/2014656522/Foto0309_normal.jpg",
- "profile_image_url_https": "https://si0.twimg.com/profile_images/2014656522/Foto0309_normal.jpg",
- "source": "<a href="http://twitter.com/">web</a>",
- "text": "Pondre lo mas importante de Hamlet en Twitter para recordarlo mejor :D",
- "to_user": null,
- "to_user_id": null,
- "to_user_id_str": null,
- "to_user_name": null
- },
- {
- "created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
- "from_user": "lauravgeest",
- "from_user_id": 370207980,
- "from_user_id_str": "370207980",
- "from_user_name": "Lauraa♥",
- "geo": null,
- "id": 194521262326951936,
- "id_str": "194521262326951936",
- "iso_language_code": "nl",
- "metadata": {
- "result_type": "recent"
- },
- "profile_image_url": "http://a0.twimg.com/profile_images/2147508883/IMG-20120404-WA003_normal.jpg",
- "profile_image_url_https": "https://si0.twimg.com/profile_images/2147508883/IMG-20120404-WA003_normal.jpg",
- "source": "<a href="http://blackberry.com/twitter" rel="nofollow">Twitter for BlackBerry®</a>",
- "text": "Twitter doet het al 7 uur niet meer",
- "to_user": null,
- "to_user_id": null,
- "to_user_id_str": null,
- "to_user_name": null
- },
- {
- "created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
- "from_user": "Jenny_Bearx333",
- "from_user_id": 393818165,
- "from_user_id_str": "393818165",
- "from_user_name": "Jenitza Quiñones",
- "geo": null,
- "id": 194521262234669056,
- "id_str": "194521262234669056",
- "iso_language_code": "en",
- "metadata": {
- "result_type": "recent"
- },
- "profile_image_url": "http://a0.twimg.com/profile_images/2156571407/543631_337343819653633_100001340549098_850013_1999940127_n_normal.jpg",
- "profile_image_url_https": "https://si0.twimg.com/profile_images/2156571407/543631_337343819653633_100001340549098_850013_1999940127_n_normal.jpg",
- "source": "<a href="http://mobile.twitter.com" rel="nofollow">Mobile Web</a>",
- "text": "I keep thinking that twitter is @instagram , and therefore double tap all the pics I like... #NotWorking",
- "to_user": null,
- "to_user_id": null,
- "to_user_id_str": null,
- "to_user_name": null
- },
- {
- "created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
- "from_user": "misspoxtonX",
- "from_user_id": 259342250,
- "from_user_id_str": "259342250",
- "from_user_name": "potatooooo king ♛",
- "geo": null,
- "id": 194521262138204160,
- "id_str": "194521262138204160",
- "iso_language_code": "en",
- "metadata": {
- "result_type": "recent"
- },
- "profile_image_url": "http://a0.twimg.com/profile_images/2159952653/P2191655_normal.JPG",
- "profile_image_url_https": "https://si0.twimg.com/profile_images/2159952653/P2191655_normal.JPG",
- "source": "<a href="http://twitter.com/#!/download/iphone" rel="nofollow">Twitter for iPhone</a>",
- "text": "RT @jordantaylorhi: twitter friends > twats at school",
- "to_user": null,
- "to_user_id": null,
- "to_user_id_str": null,
- "to_user_name": null
- },
- {
- "created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
- "from_user": "PatrickBrickman",
- "from_user_id": 102555146,
- "from_user_id_str": "102555146",
- "from_user_name": "Patrick Brickman",
- "geo": null,
- "id": 194521262134001665,
- "id_str": "194521262134001665",
- "iso_language_code": "en",
- "metadata": {
- "result_type": "recent"
- },
- "profile_image_url": "http://a0.twimg.com/profile_images/1663790229/390753_10150394068222898_738242897_8656853_1501249832_n_1__normal.jpg",
- "profile_image_url_https": "https://si0.twimg.com/profile_images/1663790229/390753_10150394068222898_738242897_8656853_1501249832_n_1__normal.jpg",
- "source": "<a href="http://twitter.com/#!/download/iphone" rel="nofollow">Twitter for iPhone</a>",
- "text": "RT @zeus30hightower: Too all Bama fans and followers my cousin mark Barron doesn't have a twitter so please disregard any tweets from that user",
- "to_user": null,
- "to_user_id": null,
- "to_user_id_str": null,
- "to_user_name": null
- },
- {
- "created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
- "from_user": "KolonelX",
- "from_user_id": 60933843,
- "from_user_id_str": "60933843",
- "from_user_name": "Baas X",
- "geo": null,
- "id": 194521262129811456,
- "id_str": "194521262129811456",
- "iso_language_code": "nl",
- "metadata": {
- "result_type": "recent"
- },
- "profile_image_url": "http://a0.twimg.com/profile_images/1778062152/Aj7p2XJCQAA75m1_normal.jpg",
- "profile_image_url_https": "https://si0.twimg.com/profile_images/1778062152/Aj7p2XJCQAA75m1_normal.jpg",
- "source": "<a href="http://www.tweetdeck.com" rel="nofollow">TweetDeck</a>",
- "text": "Ik refresh twitter op me telefoon terwijl ik tweetdeck voor me open heb staan",
- "to_user": null,
- "to_user_id": null,
- "to_user_id_str": null,
- "to_user_name": null
- },
- {
- "created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
- "from_user": "VLGPRLG5",
- "from_user_id": 360029026,
- "from_user_id_str": "360029026",
- "from_user_name": "Patricia N.",
- "geo": null,
- "id": 194521261852995586,
- "id_str": "194521261852995586",
- "iso_language_code": "en",
- "metadata": {
- "result_type": "recent"
- },
- "profile_image_url": "http://a0.twimg.com/profile_images/2087947707/tonino_marylin_normal.jpg",
- "profile_image_url_https": "https://si0.twimg.com/profile_images/2087947707/tonino_marylin_normal.jpg",
- "source": "<a href="http://blackberry.com/twitter" rel="nofollow">Twitter for BlackBerry®</a>",
- "text": "@mikeyway and you too RT @NimcyGD: @gerardway Get your ass back to twitter, okay? :3",
- "to_user": "mikeyway",
- "to_user_id": 17471459,
- "to_user_id_str": "17471459",
- "to_user_name": "Mikey Way"
- },
- {
- "created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
- "from_user": "xRhiBabyx",
- "from_user_id": 45532308,
- "from_user_id_str": "45532308",
- "from_user_name": "Rhian Cummings",
- "geo": null,
- "id": 194521261756530689,
- "id_str": "194521261756530689",
- "iso_language_code": "en",
- "metadata": {
- "result_type": "recent"
- },
- "profile_image_url": "http://a0.twimg.com/profile_images/1916248305/image_normal.jpg",
- "profile_image_url_https": "https://si0.twimg.com/profile_images/1916248305/image_normal.jpg",
- "source": "<a href="http://twitter.com/">web</a>",
- "text": "Trying to persuade the boyf to get on twitter and failing. Help? @holly_haime @Ckwarburton @samwarburton_ @chrishaime @rowloboy",
- "to_user": null,
- "to_user_id": null,
- "to_user_id_str": null,
- "to_user_name": null
- },
- {
- "created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
- "from_user": "juliotrv",
- "from_user_id": 418570237,
- "from_user_id_str": "418570237",
- "from_user_name": "Júlio Trevisan",
- "geo": null,
- "id": 194521261630697473,
- "id_str": "194521261630697473",
- "iso_language_code": "pt",
- "metadata": {
- "result_type": "recent"
- },
- "profile_image_url": "http://a0.twimg.com/profile_images/1651783865/Julio3_normal.jpg",
- "profile_image_url_https": "https://si0.twimg.com/profile_images/1651783865/Julio3_normal.jpg",
- "source": "<a href="http://twitter.com/">web</a>",
- "text": "RT @lookinglassbr: Lançamentos outono-inverno 2012...CONFIRA em http://t.co/YAk8OXp7 http://t.co/fmmrVrbG",
- "to_user": null,
- "to_user_id": null,
- "to_user_id_str": null,
- "to_user_name": null
- },
- {
- "created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
- "from_user": "shanleyaustin27",
- "from_user_id": 415094986,
- "from_user_id_str": "415094986",
- "from_user_name": "shanley austin",
- "geo": null,
- "id": 194521261571964928,
- "id_str": "194521261571964928",
- "iso_language_code": "en",
- "metadata": {
- "result_type": "recent"
- },
- "profile_image_url": "http://a0.twimg.com/profile_images/1870193522/securedownload__3__normal.jpg",
- "profile_image_url_https": "https://si0.twimg.com/profile_images/1870193522/securedownload__3__normal.jpg",
- "source": "<a href="http://twitter.com/download/android" rel="nofollow">Twitter for Android</a>",
- "text": "RT @caaammmmi: @shanleyaustin27 .....and this hahahahaa http://t.co/wzCMx6ZU",
- "to_user": null,
- "to_user_id": null,
- "to_user_id_str": null,
- "to_user_name": null
- },
- {
- "created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
- "from_user": "Dame_Valuta",
- "from_user_id": 507639925,
- "from_user_id_str": "507639925",
- "from_user_name": "Vickie Aluta",
- "geo": null,
- "id": 194521261563580416,
- "id_str": "194521261563580416",
- "iso_language_code": "en",
- "metadata": {
- "result_type": "recent"
- },
- "profile_image_url": "http://a0.twimg.com/profile_images/2081431605/30-2011-20_normal.jpg",
- "profile_image_url_https": "https://si0.twimg.com/profile_images/2081431605/30-2011-20_normal.jpg",
- "source": "<a href="http://twitter.com/#!/download/iphone" rel="nofollow">Twitter for iPhone</a>",
- "text": "RT @Paiser10: Great @chelseafc training at Nou Camp! #cfc http://t.co/k00TnRyR",
- "to_user": null,
- "to_user_id": null,
- "to_user_id_str": null,
- "to_user_name": null
- },
- {
- "created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
- "from_user": "miss_indyiah",
- "from_user_id": 25199338,
- "from_user_id_str": "25199338",
- "from_user_name": "Indyiah",
- "geo": null,
- "id": 194521261488095232,
- "id_str": "194521261488095232",
- "iso_language_code": "en",
- "metadata": {
- "result_type": "recent"
- },
- "profile_image_url": "http://a0.twimg.com/profile_images/2147854311/458978_10150938007793858_742758857_13175458_650464464_o_normal.jpg",
- "profile_image_url_https": "https://si0.twimg.com/profile_images/2147854311/458978_10150938007793858_742758857_13175458_650464464_o_normal.jpg",
- "source": "<a href="http://twitter.com/">web</a>",
- "text": "smh, @IndianaHustle done turned into a twitter addict..fuck goin on lol ?",
- "to_user": "IndianaHustle",
- "to_user_id": 59990139,
- "to_user_id_str": "59990139",
- "to_user_name": "Hustle Mane HRT",
- "in_reply_to_status_id": 194521038304976896,
- "in_reply_to_status_id_str": "194521038304976896"
- },
- {
- "created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
- "from_user": "CAROLINEWOLLER",
- "from_user_id": 136029095,
- "from_user_id_str": "136029095",
- "from_user_name": "Caroline Woller",
- "geo": null,
- "id": 194521261370650625,
- "id_str": "194521261370650625",
- "iso_language_code": "en",
- "metadata": {
- "result_type": "recent"
- },
- "profile_image_url": "http://a0.twimg.com/profile_images/1987131486/dw_normal.jpg",
- "profile_image_url_https": "https://si0.twimg.com/profile_images/1987131486/dw_normal.jpg",
- "source": "<a href="http://twitter.com/#!/download/iphone" rel="nofollow">Twitter for iPhone</a>",
- "text": "RT @Mark_Ingram28: To all Bama fans and followers, please unfollow and pay no attention to any user posing to be Mark Barron. My bro doesn't have a twitter!",
- "to_user": null,
- "to_user_id": null,
- "to_user_id_str": null,
- "to_user_name": null
- },
- {
- "created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
- "from_user": "shelbytrenchdww",
- "from_user_id": 60678594,
- "from_user_id_str": "60678594",
- "from_user_name": "Shelby Burnside",
- "geo": null,
- "id": 194521261370642432,
- "id_str": "194521261370642432",
- "iso_language_code": "en",
- "metadata": {
- "result_type": "recent"
- },
- "profile_image_url": "http://a0.twimg.com/profile_images/1721956218/maybe1_normal.PNG",
- "profile_image_url_https": "https://si0.twimg.com/profile_images/1721956218/maybe1_normal.PNG",
- "source": "<a href="http://twitter.com/">web</a>",
- "text": "RT @The90sLife: Admit it, we all have a cabinet that looks like this. http://t.co/gQEkQw5G",
- "to_user": null,
- "to_user_id": null,
- "to_user_id_str": null,
- "to_user_name": null
- },
- {
- "created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
- "from_user": "kabos84",
- "from_user_id": 265266954,
- "from_user_id_str": "265266954",
- "from_user_name": "؏ـلي ٱلـ؏ـبٱڕ a̸l̸i̸",
- "geo": null,
- "id": 194521261307727872,
- "id_str": "194521261307727872",
- "iso_language_code": "ar",
- "metadata": {
- "result_type": "recent"
- },
- "profile_image_url": "http://a0.twimg.com/profile_images/2155190680/B6210467-F1AC-41E8-9374-4B50ABB3C6EA_normal",
- "profile_image_url_https": "https://si0.twimg.com/profile_images/2155190680/B6210467-F1AC-41E8-9374-4B50ABB3C6EA_normal",
- "source": "<a href="http://twitter.com/#!/download/iphone" rel="nofollow">Twitter for iPhone</a>",
- "text": "RT @JF_q8: بالله عليكم ،، مو عيب !!!\n\n\n\n.. http://t.co/e29GV7Ow",
- "to_user": null,
- "to_user_id": null,
- "to_user_id_str": null,
- "to_user_name": null
- }
- ],
- "results_per_page": 20,
- "since_id": 0,
- "since_id_str": "0"
-}
+{"statuses":[{"metadata":{"result_type":"recent","iso_language_code":"en"},"created_at":"Mon Sep 17 22:41:52 +0000 2012","id":247827742178021376,"id_str":"247827742178021376","text":"Bubble Mailer #freebandnames","source":"\u003ca href=\"http:\/\/tapbots.com\" rel=\"nofollow\"\u003eTweetbot for Mac\u003c\/a\u003e","truncated":false,"in_reply_to_status_id":null,"in_reply_to_status_id_str":null,"in_reply_to_user_id":null,"in_reply_to_user_id_str":null,"in_reply_to_screen_name":null,"user":{"id":671293,"id_str":"671293","name":"Richard Allen","screen_name":"richrad","location":"Kansas City","url":"http:\/\/richardallen.me","description":"Give me a break, Jeffery.","protected":false,"followers_count":174,"friends_count":273,"listed_count":2,"created_at":"Sat Jan 20 16:02:45 +0000 2007","favourites_count":383,"utc_offset":-21600,"time_zone":"Central Time (US & Canada)","geo_enabled":false,"verified":false,"statuses_count":1370,"lang":"en","contributors_enabled":false,"is_translator":false,"profile_background_color":"0099B9","profile_background_image_url":"http:\/\/a0.twimg.com\/images\/themes\/theme4\/bg.gif","profile_background_image_url_https":"https:\/\/si0.twimg.com\/images\/themes\/theme4\/bg.gif","profile_background_tile":false,"profile_image_url":"http:\/\/a0.twimg.com\/profile_images\/1399177739\/notlookingup_normal.jpeg","profile_image_url_https":"https:\/\/si0.twimg.com\/profile_images\/1399177739\/notlookingup_normal.jpeg","profile_link_color":"0099B9","profile_sidebar_border_color":"5ED4DC","profile_sidebar_fill_color":"95E8EC","profile_text_color":"3C3940","profile_use_background_image":true,"show_all_inline_media":true,"default_profile":false,"default_profile_image":false,"following":null,"follow_request_sent":null,"notifications":null},"geo":null,"coordinates":null,"place":null,"contributors":null,"retweet_count":0,"entities":{"hashtags":[{"text":"freebandnames","indices":[14,28]}],"urls":[],"user_mentions":[]},"favorited":false,"retweeted":false},{"metadata":{"result_type":"recent","iso_language_code":"en"},"created_at":"Mon Sep 17 21:38:09 +0000 2012","id":247811706061979648,"id_str":"247811706061979648","text":"Hair of the Frog \n\n(seriously, think about it) \n\n#freebandnames","source":"\u003ca href=\"http:\/\/twitter.com\/download\/iphone\" rel=\"nofollow\"\u003eTwitter for iPhone\u003c\/a\u003e","truncated":false,"in_reply_to_status_id":null,"in_reply_to_status_id_str":null,"in_reply_to_user_id":null,"in_reply_to_user_id_str":null,"in_reply_to_screen_name":null,"user":{"id":349187102,"id_str":"349187102","name":"Drew Shields","screen_name":"dswordsNshields","location":"Buffalo, NY","url":"http:\/\/drewcshields.com","description":"Copywriter intern @CPBgroup Boulder. Recent SU grad in Advertising & International Relations. Pop culture devourer. Great guy to have a beer with.","protected":false,"followers_count":232,"friends_count":287,"listed_count":9,"created_at":"Fri Aug 05 18:09:00 +0000 2011","favourites_count":2,"utc_offset":-18000,"time_zone":"Eastern Time (US & Canada)","geo_enabled":true,"verified":false,"statuses_count":3366,"lang":"en","contributors_enabled":false,"is_translator":false,"profile_background_color":"0074AA","profile_background_image_url":"http:\/\/a0.twimg.com\/profile_background_images\/447073169\/2048px-Hong_Kong_Skyline_Restitch_-_Dec_2007.jpg","profile_background_image_url_https":"https:\/\/si0.twimg.com\/profile_background_images\/447073169\/2048px-Hong_Kong_Skyline_Restitch_-_Dec_2007.jpg","profile_background_tile":false,"profile_image_url":"http:\/\/a0.twimg.com\/profile_images\/1581807986\/delocated_normal.jpg","profile_image_url_https":"https:\/\/si0.twimg.com\/profile_images\/1581807986\/delocated_normal.jpg","profile_link_color":"0074AA","profile_sidebar_border_color":"C0DEED","profile_sidebar_fill_color":"DDEEF6","profile_text_color":"333333","profile_use_background_image":true,"show_all_inline_media":false,"default_profile":false,"default_profile_image":false,"following":null,"follow_request_sent":null,"notifications":null},"geo":null,"coordinates":null,"place":null,"contributors":null,"retweet_count":0,"entities":{"hashtags":[{"text":"freebandnames","indices":[49,63]}],"urls":[],"user_mentions":[]},"favorited":false,"retweeted":false},{"metadata":{"result_type":"recent","iso_language_code":"de"},"created_at":"Sat Sep 15 04:19:13 +0000 2012","id":246825473785606145,"id_str":"246825473785606145","text":"Wussies and pussies #goddylan #freebandnames","source":"\u003ca href=\"http:\/\/twitter.com\/download\/iphone\" rel=\"nofollow\"\u003eTwitter for iPhone\u003c\/a\u003e","truncated":false,"in_reply_to_status_id":null,"in_reply_to_status_id_str":null,"in_reply_to_user_id":null,"in_reply_to_user_id_str":null,"in_reply_to_screen_name":null,"user":{"id":230804589,"id_str":"230804589","name":"The Dunnie Bobos ","screen_name":"thedunniebobos","location":"New York, NY","url":"http:\/\/bobomedia.tumblr.com\/","description":"The Coveted Blue Checkmark","protected":false,"followers_count":164,"friends_count":126,"listed_count":5,"created_at":"Sun Dec 26 18:47:44 +0000 2010","favourites_count":82,"utc_offset":-18000,"time_zone":"Quito","geo_enabled":false,"verified":false,"statuses_count":930,"lang":"en","contributors_enabled":false,"is_translator":false,"profile_background_color":"C1E2EB","profile_background_image_url":"http:\/\/a0.twimg.com\/profile_background_images\/255658750\/black_dynamite.jpg","profile_background_image_url_https":"https:\/\/si0.twimg.com\/profile_background_images\/255658750\/black_dynamite.jpg","profile_background_tile":true,"profile_image_url":"http:\/\/a0.twimg.com\/profile_images\/2290113473\/pobz6p9231tle9ftq0sf_normal.png","profile_image_url_https":"https:\/\/si0.twimg.com\/profile_images\/2290113473\/pobz6p9231tle9ftq0sf_normal.png","profile_link_color":"0084B4","profile_sidebar_border_color":"C0DEED","profile_sidebar_fill_color":"FFFAE8","profile_text_color":"333333","profile_use_background_image":true,"show_all_inline_media":true,"default_profile":false,"default_profile_image":false,"following":null,"follow_request_sent":null,"notifications":null},"geo":null,"coordinates":null,"place":null,"contributors":null,"retweet_count":0,"entities":{"hashtags":[{"text":"goddylan","indices":[20,29]},{"text":"freebandnames","indices":[30,44]}],"urls":[],"user_mentions":[]},"favorited":false,"retweeted":false},{"metadata":{"result_type":"recent","iso_language_code":"en"},"created_at":"Fri Sep 14 17:46:33 +0000 2012","id":246666260270702592,"id_str":"246666260270702592","text":"#FreeBandNames Asterisks and Thunderstorms","source":"web","truncated":false,"in_reply_to_status_id":null,"in_reply_to_status_id_str":null,"in_reply_to_user_id":null,"in_reply_to_user_id_str":null,"in_reply_to_screen_name":null,"user":{"id":21434745,"id_str":"21434745","name":"StrongPROGressRyan ","screen_name":"StrongPROGress","location":"Mound (not the Phish song), MN","url":"http:\/\/strongprogress.wordpress.com\/","description":"Lover of Heavy Progressive Musics, writes Strong PROGress: an audiobiographical music blog. Father\/Husband\/Musician; digs @thebigwu @phish, One Among The Fence","protected":false,"followers_count":666,"friends_count":748,"listed_count":13,"created_at":"Fri Feb 20 21:15:32 +0000 2009","favourites_count":629,"utc_offset":-21600,"time_zone":"Central Time (US & Canada)","geo_enabled":false,"verified":false,"statuses_count":8040,"lang":"en","contributors_enabled":false,"is_translator":false,"profile_background_color":"022330","profile_background_image_url":"http:\/\/a0.twimg.com\/profile_background_images\/579632535\/2x7n6f01kmxqxddcr263.jpeg","profile_background_image_url_https":"https:\/\/si0.twimg.com\/profile_background_images\/579632535\/2x7n6f01kmxqxddcr263.jpeg","profile_background_tile":true,"profile_image_url":"http:\/\/a0.twimg.com\/profile_images\/2586458113\/6kbrcpcnurckpccnr8ta_normal.jpeg","profile_image_url_https":"https:\/\/si0.twimg.com\/profile_images\/2586458113\/6kbrcpcnurckpccnr8ta_normal.jpeg","profile_link_color":"0084B4","profile_sidebar_border_color":"A8C7F7","profile_sidebar_fill_color":"C0DFEC","profile_text_color":"333333","profile_use_background_image":true,"show_all_inline_media":true,"default_profile":false,"default_profile_image":false,"following":null,"follow_request_sent":null,"notifications":null},"geo":null,"coordinates":null,"place":null,"contributors":null,"retweet_count":0,"entities":{"hashtags":[{"text":"FreeBandNames","indices":[0,14]}],"urls":[],"user_mentions":[]},"favorited":false,"retweeted":false}],"search_metadata":{"completed_in":0.029,"max_id":250126199840518145,"max_id_str":"250126199840518145","next_page":"?page=2&max_id=250126199840518145&q=%23freebandnames&rpp=4&include_entities=1&result_type=mixed","page":1,"query":"%23freebandnames","refresh_url":"?since_id=250126199840518145&q=%23freebandnames&result_type=mixed&include_entities=1","results_per_page":4,"since_id":24012619984051000,"since_id_str":"24012619984051000"}}
View
251 spec/search_spec.rb
@@ -33,89 +33,120 @@
stub_get("/1.1/search/tweets.json").
with(:query => {:q => "twitter", :rpp => "20"}).
to_return(:body => fixture("search.json"), :headers => {:content_type => "application/json; charset=utf-8"})
+ stub_get("/1.1/search/tweets.json").
+ with(:query => {:q => "twitter", :max_id => "246666260270702591", :rpp => "16"}).
+ to_return(:body => fixture("search.json"), :headers => {:content_type => "application/json; charset=utf-8"})
+ stub_get("/1.1/search/tweets.json").
+ with(:query => {:q => "twitter", :max_id => "246666260270702591", :rpp => "12"}).
+ to_return(:body => fixture("search.json"), :headers => {:content_type => "application/json; charset=utf-8"})
+ stub_get("/1.1/search/tweets.json").
+ with(:query => {:q => "twitter", :max_id => "246666260270702591", :rpp => "8"}).
+ to_return(:body => fixture("search.json"), :headers => {:content_type => "application/json; charset=utf-8"})
+ stub_get("/1.1/search/tweets.json").
+ with(:query => {:q => "twitter", :max_id => "246666260270702591", :rpp => "4"}).
+ to_return(:body => fixture("search.json"), :headers => {:content_type => "application/json; charset=utf-8"})
end
it "should request the correct resource" do
@search.all("twitter")
a_get("/1.1/search/tweets.json").
with(:query => {:q => "twitter", :rpp => "20"}).
should have_been_made
+ a_get("/1.1/search/tweets.json").
+ with(:query => {:q => "twitter", :max_id => "246666260270702591", :rpp => "16"}).
+ should have_been_made
+ a_get("/1.1/search/tweets.json").
+ with(:query => {:q => "twitter", :max_id => "246666260270702591", :rpp => "12"}).
+ should have_been_made
+ a_get("/1.1/search/tweets.json").
+ with(:query => {:q => "twitter", :max_id => "246666260270702591", :rpp => "8"}).
+ should have_been_made
+ a_get("/1.1/search/tweets.json").
+ with(:query => {:q => "twitter", :max_id => "246666260270702591", :rpp => "4"}).
+ should have_been_made
end
it "should have the correct output" do
@search.all("twitter")
$stdout.string.should == <<-eos
-\e[1m\e[33m @Somedude\e[0m
- Gotta get right with twitter
+\e[1m\e[33m @richrad\e[0m
+ Bubble Mailer #freebandnames
+
+\e[1m\e[33m @dswordsNshields\e[0m
+ Hair of the Frog
-\e[1m\e[33m @TestMan\e[0m
- Twitter to Facebook test
+ (seriously, think about it)
-\e[1m\e[33m @Jena_Jones\e[0m
- test my new twitter..... :)
+ #freebandnames
-\e[1m\e[33m @misterpic\e[0m
- Wallah there should be a test before you can get a twitter account some
- people are so dumb... better
+\e[1m\e[33m @thedunniebobos\e[0m
+ Wussies and pussies #goddylan #freebandnames
-\e[1m\e[33m @RRabbit\e[0m
- Twitter is kinda fun... Kinda!
+\e[1m\e[33m @StrongPROGress\e[0m
+ #FreeBandNames Asterisks and Thunderstorms
-\e[1m\e[33m @JessRoveel\e[0m
- Pondre lo mas importante de Hamlet en Twitter para recordarlo mejor :D
+\e[1m\e[33m @richrad\e[0m
+ Bubble Mailer #freebandnames
-\e[1m\e[33m @lauravgeest\e[0m
- Twitter doet het al 7 uur niet meer
+\e[1m\e[33m @dswordsNshields\e[0m
+ Hair of the Frog
-\e[1m\e[33m @Jenny_Bearx333\e[0m
- I keep thinking that twitter is @instagram , and therefore double tap all the
- pics I like... #NotWorking
+ (seriously, think about it)
-\e[1m\e[33m @misspoxtonX\e[0m
- RT @jordantaylorhi: twitter friends > twats at school
+ #freebandnames
-\e[1m\e[33m @PatrickBrickman\e[0m
- RT @zeus30hightower: Too all Bama fans and followers my cousin mark Barron
- doesn't have a twitter so please disregard any tweets from that user
+\e[1m\e[33m @thedunniebobos\e[0m
+ Wussies and pussies #goddylan #freebandnames
-\e[1m\e[33m @KolonelX\e[0m
- Ik refresh twitter op me telefoon terwijl ik tweetdeck voor me open heb staan
+\e[1m\e[33m @StrongPROGress\e[0m
+ #FreeBandNames Asterisks and Thunderstorms
-\e[1m\e[33m @VLGPRLG5\e[0m
- @mikeyway and you too RT @NimcyGD: @gerardway Get your ass back to twitter,
- okay? :3
+\e[1m\e[33m @richrad\e[0m
+ Bubble Mailer #freebandnames
-\e[1m\e[33m @xRhiBabyx\e[0m
- Trying to persuade the boyf to get on twitter and failing. Help? @holly_haime
- @Ckwarburton @samwarburton_ @chrishaime @rowloboy
+\e[1m\e[33m @dswordsNshields\e[0m
+ Hair of the Frog
-\e[1m\e[33m @juliotrv\e[0m
- RT @lookinglassbr: Lançamentos outono-inverno 2012...CONFIRA em
- http://t.co/YAk8OXp7 http://t.co/fmmrVrbG
+ (seriously, think about it)
-\e[1m\e[33m @shanleyaustin27\e[0m
- RT @caaammmmi: @shanleyaustin27 .....and this hahahahaa http://t.co/wzCMx6ZU
+ #freebandnames
-\e[1m\e[33m @Dame_Valuta\e[0m
- RT @Paiser10: Great @chelseafc training at Nou Camp! #cfc
- http://t.co/k00TnRyR
+\e[1m\e[33m @thedunniebobos\e[0m
+ Wussies and pussies #goddylan #freebandnames
-\e[1m\e[33m @miss_indyiah\e[0m
- smh, @IndianaHustle done turned into a twitter addict..fuck goin on lol ?
+\e[1m\e[33m @StrongPROGress\e[0m
+ #FreeBandNames Asterisks and Thunderstorms
-\e[1m\e[33m @CAROLINEWOLLER\e[0m
- RT @Mark_Ingram28: To all Bama fans and followers, please unfollow and pay no
- attention to any user posing to be Mark Barron. My bro doesn't have a
- twitter!
+\e[1m\e[33m @richrad\e[0m
+ Bubble Mailer #freebandnames
-\e[1m\e[33m @shelbytrenchdww\e[0m
- RT @The90sLife: Admit it, we all have a cabinet that looks like this.
- http://t.co/gQEkQw5G
+\e[1m\e[33m @dswordsNshields\e[0m
+ Hair of the Frog
-\e[1m\e[33m @kabos84\e[0m
- RT @JF_q8: بالله عليكم ،، مو عيب !!!
+ (seriously, think about it)
+ #freebandnames
- .. http://t.co/e29GV7Ow
+\e[1m\e[33m @thedunniebobos\e[0m
+ Wussies and pussies #goddylan #freebandnames
+
+\e[1m\e[33m @StrongPROGress\e[0m
+ #FreeBandNames Asterisks and Thunderstorms
+
+\e[1m\e[33m @richrad\e[0m
+ Bubble Mailer #freebandnames
+
+\e[1m\e[33m @dswordsNshields\e[0m
+ Hair of the Frog
+
+ (seriously, think about it)
+
+ #freebandnames
+
+\e[1m\e[33m @thedunniebobos\e[0m
+ Wussies and pussies #goddylan #freebandnames
+
+\e[1m\e[33m @StrongPROGress\e[0m
+ #FreeBandNames Asterisks and Thunderstorms
eos
end
@@ -127,30 +158,46 @@
@search.all("twitter")
$stdout.string.should == <<-eos
ID,Posted at,Screen name,Text
-194521323202624150,2011-04-23 20:20:57 +0000,Somedude,Gotta get right with twitter
-194526951936212623,2011-04-23 20:20:57 +0000,TestMan,Twitter to Facebook test
-194521346690562622,2011-04-23 20:20:57 +0000,Jena_Jones,test my new twitter..... :)
-194521262134160820,2011-04-23 20:20:57 +0000,misterpic,Wallah there should be a test before you can get a twitter account some people are so dumb... better
-194521016652621340,2011-04-23 20:20:57 +0000,RRabbit,Twitter is kinda fun... Kinda!
-194521262415032320,2011-04-23 20:20:57 +0000,JessRoveel,Pondre lo mas importante de Hamlet en Twitter para recordarlo mejor :D
-194521262326951936,2011-04-23 20:20:57 +0000,lauravgeest,Twitter doet het al 7 uur niet meer
-194521262234669056,2011-04-23 20:20:57 +0000,Jenny_Bearx333,"I keep thinking that twitter is @instagram , and therefore double tap all the pics I like... #NotWorking"
-194521262138204160,2011-04-23 20:20:57 +0000,misspoxtonX,RT @jordantaylorhi: twitter friends > twats at school
-194521262134001665,2011-04-23 20:20:57 +0000,PatrickBrickman,RT @zeus30hightower: Too all Bama fans and followers my cousin mark Barron doesn't have a twitter so please disregard any tweets from that user
-194521262129811456,2011-04-23 20:20:57 +0000,KolonelX,Ik refresh twitter op me telefoon terwijl ik tweetdeck voor me open heb staan
-194521261852995586,2011-04-23 20:20:57 +0000,VLGPRLG5,"@mikeyway and you too RT @NimcyGD: @gerardway Get your ass back to twitter, okay? :3"
-194521261756530689,2011-04-23 20:20:57 +0000,xRhiBabyx,Trying to persuade the boyf to get on twitter and failing. Help? @holly_haime @Ckwarburton @samwarburton_ @chrishaime @rowloboy
-194521261630697473,2011-04-23 20:20:57 +0000,juliotrv,RT @lookinglassbr: Lançamentos outono-inverno 2012...CONFIRA em http://t.co/YAk8OXp7 http://t.co/fmmrVrbG
-194521261571964928,2011-04-23 20:20:57 +0000,shanleyaustin27,RT @caaammmmi: @shanleyaustin27 .....and this hahahahaa http://t.co/wzCMx6ZU
-194521261563580416,2011-04-23 20:20:57 +0000,Dame_Valuta,RT @Paiser10: Great @chelseafc training at Nou Camp! #cfc http://t.co/k00TnRyR
-194521261488095232,2011-04-23 20:20:57 +0000,miss_indyiah,"smh, @IndianaHustle done turned into a twitter addict..fuck goin on lol ?"
-194521261370650625,2011-04-23 20:20:57 +0000,CAROLINEWOLLER,"RT @Mark_Ingram28: To all Bama fans and followers, please unfollow and pay no attention to any user posing to be Mark Barron. My bro doesn't have a twitter!"
-194521261370642432,2011-04-23 20:20:57 +0000,shelbytrenchdww,"RT @The90sLife: Admit it, we all have a cabinet that looks like this. http://t.co/gQEkQw5G"
-194521261307727872,2011-04-23 20:20:57 +0000,kabos84,"RT @JF_q8: بالله عليكم ،، مو عيب !!!
-
-
-
-.. http://t.co/e29GV7Ow"
+247827742178021376,2012-09-17 22:41:52 +0000,richrad,Bubble Mailer #freebandnames
+247811706061979648,2012-09-17 21:38:09 +0000,dswordsNshields,"Hair of the Frog
+
+(seriously, think about it)
+
+#freebandnames"
+246825473785606145,2012-09-15 04:19:13 +0000,thedunniebobos,Wussies and pussies #goddylan #freebandnames
+246666260270702592,2012-09-14 17:46:33 +0000,StrongPROGress,#FreeBandNames Asterisks and Thunderstorms
+247827742178021376,2012-09-17 22:41:52 +0000,richrad,Bubble Mailer #freebandnames
+247811706061979648,2012-09-17 21:38:09 +0000,dswordsNshields,"Hair of the Frog
+
+(seriously, think about it)
+
+#freebandnames"
+246825473785606145,2012-09-15 04:19:13 +0000,thedunniebobos,Wussies and pussies #goddylan #freebandnames
+246666260270702592,2012-09-14 17:46:33 +0000,StrongPROGress,#FreeBandNames Asterisks and Thunderstorms
+247827742178021376,2012-09-17 22:41:52 +0000,richrad,Bubble Mailer #freebandnames
+247811706061979648,2012-09-17 21:38:09 +0000,dswordsNshields,"Hair of the Frog
+
+(seriously, think about it)
+
+#freebandnames"
+246825473785606145,2012-09-15 04:19:13 +0000,thedunniebobos,Wussies and pussies #goddylan #freebandnames
+246666260270702592,2012-09-14 17:46:33 +0000,StrongPROGress,#FreeBandNames Asterisks and Thunderstorms
+247827742178021376,2012-09-17 22:41:52 +0000,richrad,Bubble Mailer #freebandnames
+247811706061979648,2012-09-17 21:38:09 +0000,dswordsNshields,"Hair of the Frog
+
+(seriously, think about it)
+
+#freebandnames"
+246825473785606145,2012-09-15 04:19:13 +0000,thedunniebobos,Wussies and pussies #goddylan #freebandnames
+246666260270702592,2012-09-14 17:46:33 +0000,StrongPROGress,#FreeBandNames Asterisks and Thunderstorms
+247827742178021376,2012-09-17 22:41:52 +0000,richrad,Bubble Mailer #freebandnames
+247811706061979648,2012-09-17 21:38:09 +0000,dswordsNshields,"Hair of the Frog
+
+(seriously, think about it)
+
+#freebandnames"
+246825473785606145,2012-09-15 04:19:13 +0000,thedunniebobos,Wussies and pussies #goddylan #freebandnames
+246666260270702592,2012-09-14 17:46:33 +0000,StrongPROGress,#FreeBandNames Asterisks and Thunderstorms
eos
end
end
@@ -162,26 +209,26 @@
@search.all("twitter")
$stdout.string.should == <<-eos
ID Posted at Screen name Text
-194521323202624150 Apr 23 2011 @Somedude Gotta get right with twitter
-194526951936212623 Apr 23 2011 @TestMan Twitter to Facebook test
-194521346690562622 Apr 23 2011 @Jena_Jones test my new twitter..... :)
-194521262134160820 Apr 23 2011 @misterpic Wallah there should be a ...
-194521016652621340 Apr 23 2011 @RRabbit Twitter is kinda fun... K...
-194521262415032320 Apr 23 2011 @JessRoveel Pondre lo mas importante ...
-194521262326951936 Apr 23 2011 @lauravgeest Twitter doet het al 7 uur...
-194521262234669056 Apr 23 2011 @Jenny_Bearx333 I keep thinking that twit...
-194521262138204160 Apr 23 2011 @misspoxtonX RT @jordantaylorhi: twitt...
-194521262134001665 Apr 23 2011 @PatrickBrickman RT @zeus30hightower: Too ...
-194521262129811456 Apr 23 2011 @KolonelX Ik refresh twitter op me ...
-194521261852995586 Apr 23 2011 @VLGPRLG5 @mikeyway and you too RT ...
-194521261756530689 Apr 23 2011 @xRhiBabyx Trying to persuade the bo...
-194521261630697473 Apr 23 2011 @juliotrv RT @lookinglassbr: Lançam...
-194521261571964928 Apr 23 2011 @shanleyaustin27 RT @caaammmmi: @shanleyau...
-194521261563580416 Apr 23 2011 @Dame_Valuta RT @Paiser10: Great @chel...
-194521261488095232 Apr 23 2011 @miss_indyiah smh, @IndianaHustle done ...
-194521261370650625 Apr 23 2011 @CAROLINEWOLLER RT @Mark_Ingram28: To all...
-194521261370642432 Apr 23 2011 @shelbytrenchdww RT @The90sLife: Admit it,...
-194521261307727872 Apr 23 2011 @kabos84 RT @JF_q8: بالله عليكم ،...
+247827742178021376 Sep 17 14:41 @richrad Bubble Mailer #freebandnames
+247811706061979648 Sep 17 13:38 @dswordsNshields Hair of the Frog (seriou...
+246825473785606145 Sep 14 20:19 @thedunniebobos Wussies and pussies #godd...
+246666260270702592 Sep 14 09:46 @StrongPROGress #FreeBandNames Asterisks ...
+247827742178021376 Sep 17 14:41 @richrad Bubble Mailer #freebandnames
+247811706061979648 Sep 17 13:38 @dswordsNshields Hair of the Frog (seriou...
+246825473785606145 Sep 14 20:19 @thedunniebobos Wussies and pussies #godd...
+246666260270702592 Sep 14 09:46 @StrongPROGress #FreeBandNames Asterisks ...
+247827742178021376 Sep 17 14:41 @richrad Bubble Mailer #freebandnames
+247811706061979648 Sep 17 13:38 @dswordsNshields Hair of the Frog (seriou...
+246825473785606145 Sep 14 20:19 @thedunniebobos Wussies and pussies #godd...
+246666260270702592 Sep 14 09:46 @StrongPROGress #FreeBandNames Asterisks ...
+247827742178021376 Sep 17 14:41 @richrad Bubble Mailer #freebandnames
+247811706061979648 Sep 17 13:38 @dswordsNshields Hair of the Frog (seriou...
+246825473785606145 Sep 14 20:19 @thedunniebobos Wussies and pussies #godd...
+246666260270702592 Sep 14 09:46 @StrongPROGress #FreeBandNames Asterisks ...
+247827742178021376 Sep 17 14:41 @richrad Bubble Mailer #freebandnames
+247811706061979648 Sep 17 13:38 @dswordsNshields Hair of the Frog (seriou...
+246825473785606145 Sep 14 20:19 @thedunniebobos Wussies and pussies #godd...
+246666260270702592 Sep 14 09:46 @StrongPROGress #FreeBandNames Asterisks ...
eos
end
end
@@ -194,11 +241,11 @@
with(:query => {:q => "twitter", :rpp => "200"}).
to_return(:body => fixture("search.json"), :headers => {:content_type => "application/json; charset=utf-8"})
stub_get("/1.1/search/tweets.json").
- with(:query => {:q => "twitter", :rpp => "200", :max_id => "194521261307727871"}).
+ with(:query => {:q => "twitter", :rpp => "200", :max_id => "246666260270702591"}).
to_return(:body => fixture("search.json"), :headers => {:content_type => "application/json; charset=utf-8"})
- (5..185).step(20).to_a.reverse.each do |count|
+ (1..197).step(4).to_a.each do |count|
stub_get("/1.1/search/tweets.json").
- with(:query => {:q => "twitter", :rpp => count, :max_id => "194521261307727871"}).
+ with(:query => {:q => "twitter", :rpp => count, :max_id => "246666260270702591"}).
to_return(:body => fixture("search.json"), :headers => {:content_type => "application/json; charset=utf-8"})
end
end
@@ -216,11 +263,11 @@
with(:query => {:q => "twitter", :rpp => "200"}).
should have_been_made
a_get("/1.1/search/tweets.json").
- with(:query => {:q => "twitter", :rpp => "200", :max_id => "194521261307727871"}).
- should have_been_made.times(7)
- (5..185).step(20).to_a.reverse.each do |count|
+ with(:query => {:q => "twitter", :rpp => "200", :max_id => "246666260270702591"}).
+ should have_been_made.times(36)
+ (1..197).step(4).to_a.each do |count|
a_get("/1.1/search/tweets.json").
- with(:query => {:q => "twitter", :rpp => count, :max_id => "194521261307727871"}).
+ with(:query => {:q => "twitter", :rpp => count, :max_id => "246666260270702591"}).
should have_been_made
end
end

0 comments on commit 4d023e2

Please sign in to comment.
Something went wrong with that request. Please try again.