Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 71
- Log:
Start of upgrade to Typo 4.0.0, the latest stable release since
2.6.0. Note test/mocks/themes/azure changes from a file to a
directory, so the file has been removed in this revision and
the directory will be added in the next revision.
- Author:
- adh
- Date:
- Mon Aug 07 22:18:11 +0100 2006
- Size:
- 1071 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 | assert_equal false, tb.is_spam? |
22 | end |
23 | |
24 | def test_reject_spam_rbl |
25 | tb = Trackback.new |
26 | tb.blog_name = "Spammer" |
27 | tb.title = "Spammy trackback" |
28 | tb.excerpt = %{This is just some random text. <a href="http://chinaaircatering.com">without any senses.</a>. Please disregard.} |
29 | tb.url = "http://buy-computer.us" |
30 | tb.ip = "212.42.230.206" |
31 | |
32 | assert_equal true, tb.is_spam? |
33 | end |
34 | |
35 | def test_reject_spam_pattern |
36 | tb = Trackback.new |
37 | tb.blog_name = "Another Spammer" |
38 | tb.title = "Spammy trackback" |
39 | tb.excerpt = "Texas hold-em poker crap" |
40 | |
41 | assert_equal true, tb.is_spam? |
42 | end |
43 | end |