Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 13
- Log:
Initial import of Typo 2.6.0 sources from a downloaded Tarball.
Typo is a Ruby On Rails based blog engine.
- Author:
- adh
- Date:
- Sat Jul 22 22:25:02 +0100 2006
- Size:
- 590 Bytes
1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | |
3 | require 'http_mock' |
4 | |
5 | class PingTest < Test::Unit::TestCase |
6 | fixtures :articles, :settings |
7 | |
8 | def setup |
9 | config.reload |
10 | end |
11 | |
12 | def test_send_ping |
13 | ping = @article1.pings.build("url" => "http://localhost/post/5?param=1") |
14 | ping.send_ping("example.com") |
15 | |
16 | ping = Net::HTTP.pings.first |
17 | assert_equal "localhost",ping.host |
18 | assert_equal 80, ping.port |
19 | assert_equal "/post/5?param=1", ping.query |
20 | assert_equal "title=Article%201!&excerpt=body&url=example.com&blog_name=test%20blog", ping.post_data |
21 | end |
22 | |
23 | |
24 | |
25 | end |