public
Description: Ruby library for the del.icio.us API
Clone URL: git://github.com/technicalpickles/deliciousr.git
Start using file_fixture.
Sun Jul 13 16:32:59 -0700 2008
commit  ff71fd72750417a0af4a32399303d19678312b6c
tree    611c36f51bfbc6b25f27c2f62afc6128a79f1f8c
parent  64e92c02cb5e91d0ddee455d0996026970d5dabc
...
6
7
8
 
 
 
 
9
10
11
...
18
19
20
21
22
23
24
25
26
27
 
28
29
30
31
 
32
33
34
35
 
36
37
38
...
40
41
42
43
 
44
45
46
47
 
48
49
50
...
6
7
8
9
10
11
12
13
14
15
...
22
23
24
 
 
 
 
25
26
 
27
28
29
30
 
31
32
33
34
 
35
36
37
38
...
40
41
42
 
43
44
45
46
 
47
48
49
50
0
@@ -6,6 +6,10 @@ require 'assert2'
0
 
0
 require File.dirname(__FILE__) + '/../lib/deliciousr'
0
 
0
+require 'redgreen'
0
+require 'file_fixture/test_unit'
0
+FileFixture::FIXTURE_DIR = File.join(File.dirname(__FILE__), "fixtures")
0
+
0
 class Test::Unit::TestCase
0
   
0
   def stubbing_http_response_with(xml)
0
@@ -18,21 +22,17 @@ class Test::Unit::TestCase
0
   def stub_user()
0
     stub(:username => 'foo', :password => 'bar')
0
   end
0
-
0
- def load_xml_from(filename)
0
- File.read(File.join(File.dirname(__FILE__), "fixtures", filename))
0
- end
0
 
0
   def example_get_tags_response()
0
- load_xml_from('get_tags.xml')
0
+ file_fixture('get_tags.xml')
0
   end
0
 
0
   def example_rename_tags_response()
0
- load_xml_from('rename_tags.xml')
0
+ file_fixture('rename_tags.xml')
0
   end
0
 
0
   def example_last_updated_posts_response()
0
- load_xml_from('last_updated_posts.xml')
0
+ file_fixture('last_updated_posts.xml')
0
   end
0
 
0
   def example_last_updated_posts_date
0
@@ -40,11 +40,11 @@ class Test::Unit::TestCase
0
   end
0
 
0
   def example_get_posts_response()
0
- load_xml_from('get_posts.xml')
0
+ file_fixture('get_posts.xml')
0
   end
0
 
0
   def example_recent_posts_response()
0
- load_xml_from('recent_posts.xml')
0
+ file_fixture('recent_posts.xml')
0
   end
0
   
0
   def self.action_should_be(action)

Comments

    No one has commented yet.