t 0.9.9 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/spec/delete_spec.rb CHANGED
@@ -3,9 +3,8 @@ require 'helper'
3
3
 
4
4
  describe T::Delete do
5
5
 
6
- before do
7
- rcfile = RCFile.instance
8
- rcfile.path = fixture_path + "/.trc"
6
+ before :each do
7
+ T::RCFile.instance.path = fixture_path + "/.trc"
9
8
  @delete = T::Delete.new
10
9
  @old_stderr = $stderr
11
10
  $stderr = StringIO.new
@@ -13,7 +12,8 @@ describe T::Delete do
13
12
  $stdout = StringIO.new
14
13
  end
15
14
 
16
- after do
15
+ after :each do
16
+ T::RCFile.instance.reset
17
17
  $stderr = @old_stderr
18
18
  $stdout = @old_stdout
19
19
  end
@@ -1,76 +1,60 @@
1
1
  {
2
- "show_all_inline_media": true,
3
- "lang": "en",
4
- "geo_enabled": true,
5
- "profile_background_image_url": "http://a2.twimg.com/profile_background_images/162641967/we_concept_bg2.png",
6
- "created_at": "Mon Jul 16 12:59:01 +0000 2007",
7
- "description": "A mind forever voyaging through strange seas of thought, alone.",
2
+ "id": 7505382,
3
+ "id_str": "7505382",
4
+ "name": "Erik Michaels-Ober",
8
5
  "screen_name": "sferik",
6
+ "location": "San Francisco",
7
+ "description": "Vagabond.",
9
8
  "url": "https://github.com/sferik",
9
+ "protected": false,
10
+ "followers_count": 2262,
11
+ "friends_count": 212,
12
+ "listed_count": 118,
13
+ "created_at": "Mon Jul 16 12:59:01 +0000 2007",
14
+ "favourites_count": 3755,
15
+ "utc_offset": -28800,
16
+ "time_zone": "Pacific Time (US & Canada)",
17
+ "geo_enabled": true,
18
+ "verified": false,
19
+ "statuses_count": 7890,
20
+ "lang": "en",
10
21
  "status": {
11
- "retweeted_status": {
12
- "coordinates": null,
13
- "retweeted": false,
14
- "retweet_count": 8,
15
- "created_at": "Sun Jan 16 20:57:21 +0000 2011",
16
- "in_reply_to_user_id": null,
17
- "place": null,
18
- "source": "<a href=\"http://www.echofon.com/\" rel=\"nofollow\">Echofon</a>",
19
- "in_reply_to_status_id": null,
20
- "truncated": false,
21
- "favorited": false,
22
- "in_reply_to_status_id_str": null,
23
- "id_str": "26744838716133376",
24
- "geo": null,
25
- "contributors": null,
26
- "in_reply_to_screen_name": null,
27
- "id": 26744838716133376,
28
- "in_reply_to_user_id_str": null,
29
- "text": "[ANN] sqlite3-ruby =&gt; sqlite3"
30
- },
31
- "coordinates": null,
32
- "retweeted": false,
33
- "retweet_count": 8,
34
- "created_at": "Sun Jan 16 21:38:25 +0000 2011",
35
- "in_reply_to_user_id": null,
36
- "place": null,
22
+ "created_at": "Sun Jul 08 18:29:20 +0000 2012",
23
+ "id": 222034648631484416,
24
+ "id_str": "222034648631484416",
25
+ "text": "@goldman You're near my home town! Say hi to Woodstock for me.",
37
26
  "source": "<a href=\"http://itunes.apple.com/us/app/twitter/id409789998?mt=12\" rel=\"nofollow\">Twitter for Mac</a>",
38
- "in_reply_to_status_id": null,
39
27
  "truncated": false,
40
- "favorited": false,
41
- "in_reply_to_status_id_str": null,
42
- "id_str": "26755176471724032",
28
+ "in_reply_to_status_id": 222012135281143809,
29
+ "in_reply_to_status_id_str": "222012135281143809",
30
+ "in_reply_to_user_id": 291,
31
+ "in_reply_to_user_id_str": "291",
32
+ "in_reply_to_screen_name": "goldman",
43
33
  "geo": null,
34
+ "coordinates": null,
35
+ "place": null,
44
36
  "contributors": null,
45
- "in_reply_to_screen_name": null,
46
- "id": 26755176471724032,
47
- "in_reply_to_user_id_str": null,
48
- "text": "RT @tenderlove: [ANN] sqlite3-ruby =&gt; sqlite3"
37
+ "retweet_count": 0,
38
+ "favorited": false,
39
+ "retweeted": false
49
40
  },
50
- "profile_text_color": "333333",
51
- "followers_count": 1048,
52
- "listed_count": 41,
53
- "following": false,
54
- "favourites_count": 1040,
55
- "profile_sidebar_fill_color": "DDEEF6",
56
- "location": "San Francisco",
57
- "profile_background_tile": false,
58
- "time_zone": "Pacific Time (US & Canada)",
59
41
  "contributors_enabled": false,
60
- "statuses_count": 3479,
61
- "profile_link_color": "0084B4",
62
42
  "is_translator": false,
43
+ "profile_background_color": "000000",
44
+ "profile_background_image_url": "http://a0.twimg.com/profile_background_images/162641967/we_concept_bg2.png",
45
+ "profile_background_image_url_https": "https://si0.twimg.com/profile_background_images/162641967/we_concept_bg2.png",
46
+ "profile_background_tile": false,
47
+ "profile_image_url": "http://a0.twimg.com/profile_images/1759857427/image1326743606_normal.png",
48
+ "profile_image_url_https": "https://si0.twimg.com/profile_images/1759857427/image1326743606_normal.png",
49
+ "profile_link_color": "0084B4",
63
50
  "profile_sidebar_border_color": "C0DEED",
64
- "protected": false,
65
- "id_str": "7505382",
66
- "name": "Erik Michaels-Ober",
67
- "verified": false,
68
- "notifications": false,
51
+ "profile_sidebar_fill_color": "DDEEF6",
52
+ "profile_text_color": "333333",
69
53
  "profile_use_background_image": true,
70
- "friends_count": 197,
71
- "profile_image_url": "http://a1.twimg.com/profile_images/1186912733/Github_Square_normal.jpg",
72
- "id": 7505382,
54
+ "show_all_inline_media": true,
55
+ "default_profile": false,
56
+ "default_profile_image": false,
57
+ "following": false,
73
58
  "follow_request_sent": false,
74
- "utc_offset": -28800,
75
- "profile_background_color": "000000"
76
- }
59
+ "notifications": false
60
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "created_at": "Wed Apr 06 19:13:37 +0000 2011",
3
- "id": 55709764298092545,
4
- "id_str": "55709764298092545",
3
+ "id": 55709764298092546,
4
+ "id_str": "55709764298092546",
5
5
  "text": "The problem with your code is that it's doing exactly what you told it to do.",
6
6
  "source": "<a href=\"http://twitter.com/#!/download/iphone\" rel=\"nofollow\">Twitter for iPhone</a>",
7
7
  "truncated": false,
@@ -65,7 +65,7 @@
65
65
  ]
66
66
  },
67
67
  "place": {
68
- "id": "f29bbd03562e37d1",
68
+ "id": "f29bbd03562e37d2",
69
69
  "url": "http://api.twitter.com/1/geo/id/f29bbd03562e37d1.json",
70
70
  "place_type": "poi",
71
71
  "name": "Blowfish Sushi To Die For",
@@ -101,4 +101,4 @@
101
101
  "favorited": false,
102
102
  "retweeted": false,
103
103
  "possibly_sensitive": false
104
- }
104
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "created_at": "Wed Apr 06 19:13:37 +0000 2011",
3
- "id": 55709764298092545,
4
- "id_str": "55709764298092545",
3
+ "id": 55709764298092547,
4
+ "id_str": "55709764298092547",
5
5
  "text": "The problem with your code is that it's doing exactly what you told it to do.",
6
6
  "source": "<a href=\"http://twitter.com/#!/download/iphone\" rel=\"nofollow\">Twitter for iPhone</a>",
7
7
  "truncated": false,
@@ -65,7 +65,7 @@
65
65
  ]
66
66
  },
67
67
  "place": {
68
- "id": "f29bbd03562e37d1",
68
+ "id": "f29bbd03562e37d3",
69
69
  "url": "http://api.twitter.com/1/geo/id/f29bbd03562e37d1.json",
70
70
  "place_type": "poi",
71
71
  "name": "Blowfish Sushi To Die For",
@@ -99,4 +99,4 @@
99
99
  "favorited": false,
100
100
  "retweeted": false,
101
101
  "possibly_sensitive": false
102
- }
102
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "created_at": "Wed Apr 06 19:13:37 +0000 2011",
3
- "id": 55709764298092545,
4
- "id_str": "55709764298092545",
3
+ "id": 55709764298092548,
4
+ "id_str": "55709764298092548",
5
5
  "text": "The problem with your code is that it's doing exactly what you told it to do.",
6
6
  "source": "<a href=\"http://twitter.com/#!/download/iphone\" rel=\"nofollow\">Twitter for iPhone</a>",
7
7
  "truncated": false,
@@ -65,7 +65,7 @@
65
65
  ]
66
66
  },
67
67
  "place": {
68
- "id": "f29bbd03562e37d1",
68
+ "id": "f29bbd03562e37d4",
69
69
  "url": "http://api.twitter.com/1/geo/id/f29bbd03562e37d1.json",
70
70
  "place_type": "poi",
71
71
  "name": "Blowfish Sushi To Die For",
@@ -98,4 +98,4 @@
98
98
  "favorited": false,
99
99
  "retweeted": false,
100
100
  "possibly_sensitive": false
101
- }
101
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "created_at": "Wed Apr 06 19:13:37 +0000 2011",
3
- "id": 55709764298092545,
4
- "id_str": "55709764298092545",
3
+ "id": 55709764298092549,
4
+ "id_str": "55709764298092549",
5
5
  "text": "The problem with your code is that it's doing exactly what you told it to do.",
6
6
  "source": "<a href=\"http://twitter.com/#!/download/iphone\" rel=\"nofollow\">Twitter for iPhone</a>",
7
7
  "truncated": false,
@@ -65,7 +65,7 @@
65
65
  ]
66
66
  },
67
67
  "place": {
68
- "id": "f29bbd03562e37d1",
68
+ "id": "f29bbd03562e37d5",
69
69
  "url": "http://api.twitter.com/1/geo/id/f29bbd03562e37d1.json",
70
70
  "place_type": "poi",
71
71
  "name": "Blowfish Sushi To Die For",
@@ -104,4 +104,4 @@
104
104
  "favorited": false,
105
105
  "retweeted": false,
106
106
  "possibly_sensitive": false
107
- }
107
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "created_at": "Wed Apr 06 19:13:37 +0000 2011",
3
- "id": 55709764298092545,
4
- "id_str": "55709764298092545",
3
+ "id": 55709764298092550,
4
+ "id_str": "55709764298092550",
5
5
  "text": "The problem with your code is that it's doing exactly what you told it to do.",
6
6
  "source": "<a href=\"http://twitter.com/#!/download/iphone\" rel=\"nofollow\">Twitter for iPhone</a>",
7
7
  "truncated": false,
@@ -65,7 +65,7 @@
65
65
  ]
66
66
  },
67
67
  "place": {
68
- "id": "f29bbd03562e37d1",
68
+ "id": "f29bbd03562e37d6",
69
69
  "url": "http://api.twitter.com/1/geo/id/f29bbd03562e37d1.json",
70
70
  "place_type": "poi",
71
71
  "name": "Blowfish Sushi To Die For",
@@ -105,4 +105,4 @@
105
105
  "favorited": false,
106
106
  "retweeted": false,
107
107
  "possibly_sensitive": false
108
- }
108
+ }
@@ -1,92 +1,122 @@
1
1
  [
2
2
  {
3
+ "id": 14100886,
4
+ "profile_background_image_url": "http://a0.twimg.com/images/themes/theme1/bg.png",
5
+ "profile_link_color": "0084B4",
6
+ "following": true,
7
+ "default_profile": true,
8
+ "utc_offset": -21600,
9
+ "profile_use_background_image": true,
10
+ "name": "Wynn Netherland ⚡",
11
+ "notifications": false,
12
+ "contributors_enabled": false,
13
+ "profile_text_color": "333333",
3
14
  "geo_enabled": true,
4
- "time_zone": "Pacific Time (US & Canada)",
5
- "description": "Adventures in hunger and foolishness.",
15
+ "id_str": "14100886",
16
+ "protected": false,
17
+ "listed_count": 358,
18
+ "show_all_inline_media": true,
19
+ "friends_count": 3427,
20
+ "profile_image_url": "http://a0.twimg.com/profile_images/2221455972/wynn-mic-bw_normal.jpg",
21
+ "profile_sidebar_border_color": "C0DEED",
22
+ "followers_count": 5457,
23
+ "description": "Christian, husband, father, GitHubber, Co-host of @thechangelog, Co-author of Sass, Compass, #CSS book http://wynn.fm/sass-meap",
24
+ "is_translator": false,
25
+ "url": "http://wynnnetherland.com",
26
+ "screen_name": "pengwynn",
27
+ "profile_background_tile": false,
28
+ "profile_image_url_https": "https://si0.twimg.com/profile_images/2221455972/wynn-mic-bw_normal.jpg",
6
29
  "profile_sidebar_fill_color": "DDEEF6",
7
- "followers_count": 898,
30
+ "created_at": "Sat Mar 08 16:34:22 +0000 2008",
31
+ "statuses_count": 6940,
32
+ "lang": "en",
33
+ "profile_background_image_url_https": "https://si0.twimg.com/images/themes/theme1/bg.png",
8
34
  "verified": false,
9
- "notifications": false,
35
+ "time_zone": "Central Time (US & Canada)",
36
+ "default_profile_image": false,
37
+ "favourites_count": 192,
38
+ "status": {
39
+ "in_reply_to_user_id_str": "321401349",
40
+ "retweet_count": 0,
41
+ "in_reply_to_user_id": 321401349,
42
+ "in_reply_to_status_id": 221694109407121409,
43
+ "retweeted": false,
44
+ "truncated": false,
45
+ "created_at": "Sat Jul 07 20:33:19 +0000 2012",
46
+ "coordinates": null,
47
+ "geo": null,
48
+ "contributors": null,
49
+ "place": null,
50
+ "favorited": false,
51
+ "source": "<a href=\"http://itunes.apple.com/us/app/twitter/id409789998?mt=12\" rel=\"nofollow\">Twitter for Mac</a>",
52
+ "id": 221703464277917696,
53
+ "in_reply_to_status_id_str": "221694109407121409",
54
+ "id_str": "221703464277917696",
55
+ "in_reply_to_screen_name": "akosmasoftware",
56
+ "text": "@akosmasoftware Sass book! @hcatlin @nex3 are the brains behind Sass. :-)"
57
+ },
58
+ "profile_background_color": "C0DEED",
10
59
  "follow_request_sent": false,
60
+ "location": "Denton, TX"
61
+ },
62
+ {
63
+ "id": 7505382,
64
+ "profile_background_image_url": "http://a0.twimg.com/profile_background_images/162641967/we_concept_bg2.png",
65
+ "profile_link_color": "0084B4",
66
+ "following": false,
67
+ "default_profile": false,
68
+ "utc_offset": -28800,
11
69
  "profile_use_background_image": true,
12
- "profile_sidebar_border_color": "C0DEED",
13
- "url": null,
14
- "profile_background_image_url": "http://a3.twimg.com/profile_background_images/162641967/we_concept_bg2.png",
15
- "lang": "en",
16
- "created_at": "Mon Jul 16 12:59:01 +0000 2007",
17
- "profile_background_color": "000000",
18
- "location": "San Francisco",
19
- "listed_count": 29,
20
- "profile_background_tile": false,
21
- "friends_count": 88,
22
- "protected": false,
23
- "profile_image_url": "http://a0.twimg.com/profile_images/323331048/me_normal.jpg",
24
- "statuses_count": 2962,
25
- "profile_text_color": "333333",
26
70
  "name": "Erik Michaels-Ober",
27
- "show_all_inline_media": true,
28
- "following": true,
29
- "favourites_count": 727,
30
- "screen_name": "sferik",
31
- "id": 7505382,
32
- "id_str": "7505382",
71
+ "notifications": false,
33
72
  "contributors_enabled": false,
34
- "utc_offset": -28800,
35
- "profile_link_color": "0084B4"
36
- },
37
- {
73
+ "profile_text_color": "333333",
38
74
  "geo_enabled": true,
39
- "time_zone": "Central Time (US & Canada)",
40
- "description": "Christian husband and father. Dev Experience @ HP Cloud Services. Co-host of the @changelogshow. Mashup of design & development.",
41
- "profile_sidebar_fill_color": "dddddd",
42
- "followers_count": 2767,
75
+ "id_str": "7505382",
76
+ "protected": false,
77
+ "listed_count": 118,
78
+ "show_all_inline_media": true,
79
+ "friends_count": 212,
80
+ "profile_image_url": "http://a0.twimg.com/profile_images/1759857427/image1326743606_normal.png",
81
+ "profile_sidebar_border_color": "C0DEED",
82
+ "followers_count": 2262,
83
+ "description": "Vagabond.",
84
+ "is_translator": false,
85
+ "url": "https://github.com/sferik",
86
+ "screen_name": "sferik",
87
+ "profile_background_tile": false,
88
+ "profile_image_url_https": "https://si0.twimg.com/profile_images/1759857427/image1326743606_normal.png",
89
+ "profile_sidebar_fill_color": "DDEEF6",
90
+ "created_at": "Mon Jul 16 12:59:01 +0000 2007",
91
+ "statuses_count": 7890,
92
+ "lang": "en",
93
+ "profile_background_image_url_https": "https://si0.twimg.com/profile_background_images/162641967/we_concept_bg2.png",
94
+ "verified": false,
95
+ "time_zone": "Pacific Time (US & Canada)",
96
+ "default_profile_image": false,
97
+ "favourites_count": 3755,
43
98
  "status": {
44
- "place": null,
45
- "retweet_count": null,
46
- "geo": null,
99
+ "in_reply_to_user_id_str": "291",
100
+ "retweet_count": 0,
101
+ "in_reply_to_user_id": 291,
102
+ "in_reply_to_status_id": 222012135281143809,
47
103
  "retweeted": false,
48
- "in_reply_to_status_id": 28008649044,
49
- "source": "<a href=\"http://twitter.com\" rel=\"nofollow\">Tweetie for Mac</a>",
50
104
  "truncated": false,
51
- "in_reply_to_status_id_str": "28008649044",
52
- "created_at": "Thu Oct 21 10:33:15 +0000 2010",
53
- "in_reply_to_user_id": 11502142,
54
- "favorited": false,
55
- "in_reply_to_user_id_str": "11502142",
56
- "contributors": null,
105
+ "created_at": "Sun Jul 08 18:29:20 +0000 2012",
57
106
  "coordinates": null,
58
- "in_reply_to_screen_name": "benfawkes",
59
- "id": 28014236998,
60
- "id_str": "28014236998",
61
- "text": "@benfawkes Surely. Just email wynn at the changelog dot com."
107
+ "geo": null,
108
+ "contributors": null,
109
+ "place": null,
110
+ "favorited": false,
111
+ "source": "<a href=\"http://itunes.apple.com/us/app/twitter/id409789998?mt=12\" rel=\"nofollow\">Twitter for Mac</a>",
112
+ "id": 222034648631484416,
113
+ "in_reply_to_status_id_str": "222012135281143809",
114
+ "id_str": "222034648631484416",
115
+ "in_reply_to_screen_name": "goldman",
116
+ "text": "@goldman You're near my home town! Say hi to Woodstock for me."
62
117
  },
63
- "verified": false,
64
- "notifications": false,
118
+ "profile_background_color": "000000",
65
119
  "follow_request_sent": false,
66
- "profile_use_background_image": true,
67
- "profile_sidebar_border_color": "cccccc",
68
- "url": "http://wynnnetherland.com",
69
- "profile_background_image_url": "http://a1.twimg.com/profile_background_images/61741268/twitter-small.png",
70
- "lang": "en",
71
- "created_at": "Sat Mar 08 16:34:22 +0000 2008",
72
- "profile_background_color": "efefef",
73
- "location": "Dallas, TX",
74
- "listed_count": 185,
75
- "profile_background_tile": false,
76
- "friends_count": 1871,
77
- "protected": false,
78
- "profile_image_url": "http://a2.twimg.com/profile_images/485575482/komikazee_normal.png",
79
- "statuses_count": 3913,
80
- "profile_text_color": "666666",
81
- "name": "Wynn Netherland",
82
- "show_all_inline_media": false,
83
- "following": true,
84
- "favourites_count": 32,
85
- "screen_name": "pengwynn",
86
- "id": 14100886,
87
- "id_str": "14100886",
88
- "contributors_enabled": false,
89
- "utc_offset": -21600,
90
- "profile_link_color": "35abe9"
120
+ "location": "San Francisco"
91
121
  }
92
- ]
122
+ ]