-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_helper.rb
56 lines (47 loc) · 1.5 KB
/
test_helper.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
RAILS_ENV = 'test'
require 'rubygems'
require 'test/unit'
require File.join(File.dirname(__FILE__), "..", "rails", "init")
module AssertMicroformatsTestData
def hcards
{
:simple => '<span class="vcard"><span class="fn">George Brocklehurst</span></span>',
:complex => '<div class="vcard"><a class="fn url" href="http://georgebrock.com">George Brocklehurst</a> <span class="tel">(020)12312312</span></div>'
}
end
def hcalendars
{
:simple => '<span class="vevent"><span class="summary">An event</span>, <span class="dtstart">2009-05-30</span></span>'
}
end
def hreviews
{
:simple => '<span class="hreview">A review of <span class="item vcard"><span class="fn org">Apple</span></span></span>'
}
end
def hentries
{
:simple => '<div class="hentry"><h1 class="entry-title">Test Entry</h1><span class="published">2009-05-30</span><p class="entry-title">An awesome test case for hEntry</p></div>'
}
end
def hresumes
{
:simple => '<div class="hresume"><address class="vcard"><span class="fn">George Brocklehurst</span></address></div>'
}
end
def xoxo
{
:simple => '<ol class="xoxo"><li>Does anyone know what XOXO is for?</li><li>And so on</li></ol>'
}
end
def geo
{
:simple => '<div class="geo"><span class="latitude">37.386013</span>, <span class="longitude">-122.082932</span></div>'
}
end
def xfn
{
:simple => '<a href="http://georgebrock.com" rel="me">My other website</a>'
}
end
end