public
Description: Ruby library for the del.icio.us API
Clone URL: git://github.com/technicalpickles/deliciousr.git
Put some stuff under a context.
Wed Apr 09 19:34:53 -0700 2008
commit  64e92c02cb5e91d0ddee455d0996026970d5dabc
tree    5c54246200de2fd916cc900efd2704d383c4984a
parent  2c91bc8a977501e946ec23996a0d667e0100028a
...
36
37
38
39
40
 
 
 
41
42
43
44
45
46
47
 
48
 
 
 
 
 
49
50
51
52
 
 
 
53
54
55
56
 
 
 
57
58
59
60
61
62
 
 
 
 
 
63
64
65
 
 
 
66
67
68
...
36
37
38
 
 
39
40
41
42
 
 
 
 
 
 
43
44
45
46
47
48
49
50
 
 
 
51
52
53
54
 
 
 
55
56
57
58
 
 
 
 
 
59
60
61
62
63
64
 
 
65
66
67
68
69
70
0
@@ -36,33 +36,35 @@ module Deliciousr
0
         should_have_required_parameters :none
0
         should_have_optional_parameters :tag, :count
0
         
0
- should 'parse 2 posts' do
0
- posts = @api_call.parse(@root)
0
+ context 'without any optional parameters' do
0
+ should 'parse 2 posts' do
0
+ posts = @api_call.parse(@root)
0
           
0
- assert {posts.size == 2}
0
- end
0
-
0
- context 'first parsed post' do
0
- setup do
0
- @post = @api_call.parse(@root).first
0
+ assert {posts.size == 2}
0
           end
0
+
0
+ context 'first parsed post' do
0
+ setup do
0
+ @post = @api_call.parse(@root).first
0
+ end
0
           
0
- should 'have href be http://www.weather.com' do
0
- assert {@post.href == 'http://www.weather.com/'}
0
- end
0
+ should 'have href be http://www.weather.com' do
0
+ assert {@post.href == 'http://www.weather.com/'}
0
+ end
0
           
0
- should 'have description be weather.com' do
0
- assert {@post.description == 'weather.com'}
0
- end
0
+ should 'have description be weather.com' do
0
+ assert {@post.description == 'weather.com'}
0
+ end
0
           
0
- should 'have weather and reference tags' do
0
- assert {@post.tags.size == 2}
0
- assert {@post.tags.first.name == 'weather'}
0
- assert {@post.tags.last.name == 'reference'}
0
- end
0
+ should 'have weather and reference tags' do
0
+ assert {@post.tags.size == 2}
0
+ assert {@post.tags.first.name == 'weather'}
0
+ assert {@post.tags.last.name == 'reference'}
0
+ end
0
           
0
- should_eventually 'have date be 2005-11-29T20:30:47Z' do
0
- assert {@post.date ==DateTime.parse('2005-11-29T20:30:47Z')}
0
+ should_eventually 'have date be 2005-11-29T20:30:47Z' do
0
+ assert {@post.date == DateTime.parse('2005-11-29T20:30:47Z')}
0
+ end
0
           end
0
         end
0
       end

Comments

    No one has commented yet.