Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 15
- Log:
Attempt to update Typo to a Typo SVN HEAD release from around the
time the prototype installation was set up on the RISC OS Open Limited
web site. Timestamps place this at 04-Jul so a revision from 05-Jul or
earlier was pulled and copied over the 2.6.0 tarball stable code.
- Author:
- adh
- Date:
- Sat Jul 22 23:27:35 +0100 2006
- Size:
- 1126 Bytes
1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | |
3 | require 'dns_mock' |
4 | |
5 | class TrackbackTest < Test::Unit::TestCase |
6 | fixtures :contents, :blacklist_patterns, :blogs |
7 | |
8 | def test_incomplete |
9 | tb = Trackback.new |
10 | tb.blog_name = "Blog name" |
11 | tb.title = "Title" |
12 | tb.excerpt = "Excerpt" |
13 | |
14 | assert ! tb.save |
15 | assert tb.errors.invalid?('url') |
16 | |
17 | tb.url = "http://foo.com" |
18 | assert tb.save |
19 | assert tb.errors.empty? |
20 | assert tb.guid.size > 15 |
21 | end |
22 | |
23 | def test_reject_spam_rbl |
24 | tb = Trackback.new |
25 | tb.blog_name = "Spammer" |
26 | tb.title = "Spammy trackback" |
27 | tb.excerpt = %{This is just some random text. <a href="http://chinaaircatering.com">without any senses.</a>. Please disregard.} |
28 | tb.url = "http://buy-computer.us" |
29 | tb.ip = "212.42.230.206" |
30 | |
31 | assert ! tb.save |
32 | assert tb.errors.invalid?('excerpt') |
33 | assert tb.errors.invalid?('url') |
34 | end |
35 | |
36 | def test_reject_spam_pattern |
37 | tb = Trackback.new |
38 | tb.blog_name = "Another Spammer" |
39 | tb.title = "Spammy trackback" |
40 | tb.excerpt = "Texas hold-em poker crap" |
41 | |
42 | assert ! tb.save |
43 | assert tb.errors.invalid?('excerpt') |
44 | end |
45 | end |