mofo 0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. data/CHANGELOG +4 -0
  2. data/lib/microformat.rb +11 -1
  3. data/lib/microformat/simple.rb +21 -17
  4. data/lib/mofo/hentry.rb +1 -1
  5. data/lib/mofo/hreview.rb +0 -2
  6. data/lib/mofo/rel_tag.rb +0 -1
  7. data/tests/fixtures/bob.html +69 -0
  8. data/tests/fixtures/chowhound.html +1052 -0
  9. data/tests/fixtures/corkd.html +403 -0
  10. data/tests/fixtures/events.html +39 -0
  11. data/tests/fixtures/fake.html +1 -0
  12. data/tests/fixtures/fauxtank.html +535 -0
  13. data/tests/fixtures/hatom.html +1101 -0
  14. data/tests/fixtures/simple.html +5 -0
  15. data/tests/fixtures/upcoming.html +335 -0
  16. data/tests/format_test.rb +230 -0
  17. data/tests/hatom_test.rb +39 -0
  18. data/tests/test_helper.rb +6 -0
  19. data/tests/xoxo_test.rb +49 -0
  20. data/vendor/testspec-0.2.0/ChangeLog +120 -0
  21. data/vendor/testspec-0.2.0/README +206 -0
  22. data/vendor/testspec-0.2.0/ROADMAP +3 -0
  23. data/vendor/testspec-0.2.0/Rakefile +86 -0
  24. data/vendor/testspec-0.2.0/SPECS +101 -0
  25. data/vendor/testspec-0.2.0/TODO +1 -0
  26. data/vendor/testspec-0.2.0/bin/specrb +103 -0
  27. data/vendor/testspec-0.2.0/examples/stack.rb +38 -0
  28. data/vendor/testspec-0.2.0/examples/stack_spec.rb +119 -0
  29. data/vendor/testspec-0.2.0/lib/test/spec.rb +366 -0
  30. data/vendor/testspec-0.2.0/lib/test/spec/dox.rb +114 -0
  31. data/vendor/testspec-0.2.0/lib/test/spec/rdox.rb +25 -0
  32. data/vendor/testspec-0.2.0/lib/test/spec/should-output.rb +48 -0
  33. data/vendor/testspec-0.2.0/rdoc/classes/Kernel.html +105 -0
  34. data/vendor/testspec-0.2.0/rdoc/classes/Object.html +154 -0
  35. data/vendor/testspec-0.2.0/rdoc/classes/Test/Spec.html +132 -0
  36. data/vendor/testspec-0.2.0/rdoc/classes/Test/Spec/DefinitionError.html +111 -0
  37. data/vendor/testspec-0.2.0/rdoc/classes/Test/Spec/Should.html +863 -0
  38. data/vendor/testspec-0.2.0/rdoc/classes/Test/Spec/ShouldNot.html +411 -0
  39. data/vendor/testspec-0.2.0/rdoc/classes/Test/Spec/TestCase.html +220 -0
  40. data/vendor/testspec-0.2.0/rdoc/classes/Test/Spec/TestCase/ClassMethods.html +290 -0
  41. data/vendor/testspec-0.2.0/rdoc/classes/Test/Spec/TestCase/InstanceMethods.html +195 -0
  42. data/vendor/testspec-0.2.0/rdoc/classes/Test/Unit/UI/RDox/TestRunner.html +222 -0
  43. data/vendor/testspec-0.2.0/rdoc/classes/Test/Unit/UI/SpecDox/TestRunner.html +468 -0
  44. data/vendor/testspec-0.2.0/rdoc/created.rid +1 -0
  45. data/vendor/testspec-0.2.0/rdoc/files/README.html +409 -0
  46. data/vendor/testspec-0.2.0/rdoc/files/ROADMAP.html +112 -0
  47. data/vendor/testspec-0.2.0/rdoc/files/SPECS.html +365 -0
  48. data/vendor/testspec-0.2.0/rdoc/files/lib/test/spec/dox_rb.html +108 -0
  49. data/vendor/testspec-0.2.0/rdoc/files/lib/test/spec/rdox_rb.html +108 -0
  50. data/vendor/testspec-0.2.0/rdoc/files/lib/test/spec/should-output_rb.html +114 -0
  51. data/vendor/testspec-0.2.0/rdoc/files/lib/test/spec_rb.html +123 -0
  52. data/vendor/testspec-0.2.0/rdoc/fr_class_index.html +37 -0
  53. data/vendor/testspec-0.2.0/rdoc/fr_file_index.html +33 -0
  54. data/vendor/testspec-0.2.0/rdoc/fr_method_index.html +95 -0
  55. data/vendor/testspec-0.2.0/rdoc/index.html +24 -0
  56. data/vendor/testspec-0.2.0/rdoc/rdoc-style.css +208 -0
  57. data/vendor/testspec-0.2.0/test/spec_dox.rb +39 -0
  58. data/vendor/testspec-0.2.0/test/spec_flexmock.rb +210 -0
  59. data/vendor/testspec-0.2.0/test/spec_mocha.rb +118 -0
  60. data/vendor/testspec-0.2.0/test/spec_nestedcontexts.rb +26 -0
  61. data/vendor/testspec-0.2.0/test/spec_should-output.rb +26 -0
  62. data/vendor/testspec-0.2.0/test/spec_testspec.rb +311 -0
  63. data/vendor/testspec-0.2.0/test/spec_testspec_order.rb +26 -0
  64. data/vendor/testspec-0.2.0/test/test_testunit.rb +21 -0
  65. metadata +81 -2
@@ -0,0 +1,26 @@
1
+ require 'test/spec'
2
+
3
+ $foo = 0
4
+
5
+ context "Context First" do
6
+ specify "runs before Second" do
7
+ $foo.should.equal 0
8
+ $foo += 1
9
+ end
10
+ end
11
+
12
+ context "Context Second" do
13
+ specify "runs before Last" do
14
+ $foo.should.equal 1
15
+ $foo += 1
16
+ end
17
+ end
18
+
19
+ context "Context Last" do
20
+ specify "runs last" do
21
+ $foo.should.equal 2
22
+ $foo += 1
23
+ end
24
+ end
25
+
26
+
@@ -0,0 +1,21 @@
1
+ require 'test/spec'
2
+
3
+ class TestTestUnit < Test::Unit::TestCase
4
+ def test_still_works_on_its_own
5
+ assert_equal 1, 1
6
+ assert_raise(RuntimeError) { raise "Error" }
7
+ end
8
+
9
+ def test_supports_should_good_enough
10
+ (2 + 3).should.be 5
11
+ lambda { raise "Error" }.should.raise
12
+ end
13
+ end
14
+
15
+ context "TestUnit" do
16
+ specify "works inside test/spec" do
17
+ assert_equal 1, 1
18
+ assert_raise(RuntimeError) { raise "Error" }
19
+ end
20
+ end
21
+
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: mofo
5
5
  version: !ruby/object:Gem::Version
6
- version: "0.1"
7
- date: 2006-11-09 00:00:00 -08:00
6
+ version: 0.1.1
7
+ date: 2007-01-19 00:00:00 -08:00
8
8
  summary: mofo is a ruby microformat parser
9
9
  require_paths:
10
10
  - lib
@@ -45,6 +45,85 @@ files:
45
45
  - lib/mofo/hreview.rb
46
46
  - lib/mofo/rel_tag.rb
47
47
  - lib/mofo/xoxo.rb
48
+ - tests/fixtures
49
+ - tests/format_test.rb
50
+ - tests/hatom_test.rb
51
+ - tests/test_helper.rb
52
+ - tests/xoxo_test.rb
53
+ - tests/fixtures/bob.html
54
+ - tests/fixtures/chowhound.html
55
+ - tests/fixtures/corkd.html
56
+ - tests/fixtures/events.html
57
+ - tests/fixtures/fake.html
58
+ - tests/fixtures/fauxtank.html
59
+ - tests/fixtures/hatom.html
60
+ - tests/fixtures/simple.html
61
+ - tests/fixtures/upcoming.html
62
+ - vendor/testspec-0.2.0
63
+ - vendor/testspec-0.2.0/bin
64
+ - vendor/testspec-0.2.0/ChangeLog
65
+ - vendor/testspec-0.2.0/examples
66
+ - vendor/testspec-0.2.0/lib
67
+ - vendor/testspec-0.2.0/Rakefile
68
+ - vendor/testspec-0.2.0/rdoc
69
+ - vendor/testspec-0.2.0/README
70
+ - vendor/testspec-0.2.0/ROADMAP
71
+ - vendor/testspec-0.2.0/SPECS
72
+ - vendor/testspec-0.2.0/test
73
+ - vendor/testspec-0.2.0/TODO
74
+ - vendor/testspec-0.2.0/bin/specrb
75
+ - vendor/testspec-0.2.0/examples/stack.rb
76
+ - vendor/testspec-0.2.0/examples/stack_spec.rb
77
+ - vendor/testspec-0.2.0/lib/test
78
+ - vendor/testspec-0.2.0/lib/test/spec
79
+ - vendor/testspec-0.2.0/lib/test/spec.rb
80
+ - vendor/testspec-0.2.0/lib/test/spec/dox.rb
81
+ - vendor/testspec-0.2.0/lib/test/spec/rdox.rb
82
+ - vendor/testspec-0.2.0/lib/test/spec/should-output.rb
83
+ - vendor/testspec-0.2.0/rdoc/classes
84
+ - vendor/testspec-0.2.0/rdoc/created.rid
85
+ - vendor/testspec-0.2.0/rdoc/files
86
+ - vendor/testspec-0.2.0/rdoc/fr_class_index.html
87
+ - vendor/testspec-0.2.0/rdoc/fr_file_index.html
88
+ - vendor/testspec-0.2.0/rdoc/fr_method_index.html
89
+ - vendor/testspec-0.2.0/rdoc/index.html
90
+ - vendor/testspec-0.2.0/rdoc/rdoc-style.css
91
+ - vendor/testspec-0.2.0/rdoc/classes/Kernel.html
92
+ - vendor/testspec-0.2.0/rdoc/classes/Object.html
93
+ - vendor/testspec-0.2.0/rdoc/classes/Test
94
+ - vendor/testspec-0.2.0/rdoc/classes/Test/Spec
95
+ - vendor/testspec-0.2.0/rdoc/classes/Test/Spec.html
96
+ - vendor/testspec-0.2.0/rdoc/classes/Test/Unit
97
+ - vendor/testspec-0.2.0/rdoc/classes/Test/Spec/DefinitionError.html
98
+ - vendor/testspec-0.2.0/rdoc/classes/Test/Spec/Should.html
99
+ - vendor/testspec-0.2.0/rdoc/classes/Test/Spec/ShouldNot.html
100
+ - vendor/testspec-0.2.0/rdoc/classes/Test/Spec/TestCase
101
+ - vendor/testspec-0.2.0/rdoc/classes/Test/Spec/TestCase.html
102
+ - vendor/testspec-0.2.0/rdoc/classes/Test/Spec/TestCase/ClassMethods.html
103
+ - vendor/testspec-0.2.0/rdoc/classes/Test/Spec/TestCase/InstanceMethods.html
104
+ - vendor/testspec-0.2.0/rdoc/classes/Test/Unit/UI
105
+ - vendor/testspec-0.2.0/rdoc/classes/Test/Unit/UI/RDox
106
+ - vendor/testspec-0.2.0/rdoc/classes/Test/Unit/UI/SpecDox
107
+ - vendor/testspec-0.2.0/rdoc/classes/Test/Unit/UI/RDox/TestRunner.html
108
+ - vendor/testspec-0.2.0/rdoc/classes/Test/Unit/UI/SpecDox/TestRunner.html
109
+ - vendor/testspec-0.2.0/rdoc/files/lib
110
+ - vendor/testspec-0.2.0/rdoc/files/README.html
111
+ - vendor/testspec-0.2.0/rdoc/files/ROADMAP.html
112
+ - vendor/testspec-0.2.0/rdoc/files/SPECS.html
113
+ - vendor/testspec-0.2.0/rdoc/files/lib/test
114
+ - vendor/testspec-0.2.0/rdoc/files/lib/test/spec
115
+ - vendor/testspec-0.2.0/rdoc/files/lib/test/spec_rb.html
116
+ - vendor/testspec-0.2.0/rdoc/files/lib/test/spec/dox_rb.html
117
+ - vendor/testspec-0.2.0/rdoc/files/lib/test/spec/rdox_rb.html
118
+ - vendor/testspec-0.2.0/rdoc/files/lib/test/spec/should-output_rb.html
119
+ - vendor/testspec-0.2.0/test/spec_dox.rb
120
+ - vendor/testspec-0.2.0/test/spec_flexmock.rb
121
+ - vendor/testspec-0.2.0/test/spec_mocha.rb
122
+ - vendor/testspec-0.2.0/test/spec_nestedcontexts.rb
123
+ - vendor/testspec-0.2.0/test/spec_should-output.rb
124
+ - vendor/testspec-0.2.0/test/spec_testspec.rb
125
+ - vendor/testspec-0.2.0/test/spec_testspec_order.rb
126
+ - vendor/testspec-0.2.0/test/test_testunit.rb
48
127
  test_files: []
49
128
 
50
129
  rdoc_options: []