Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 171
- Log:
Initial import of Beast 0.9 from downloaded Tarball. Beast is a Ruby
On Rails based forum application. The original tarball came from the
following location:http://s3.amazonaws.com/beast-forum/beast-0.9.tar.gz
The forum post which announced this version's availability was at:
http://beast.caboo.se/forums/1/topics/446
- Author:
- rool
- Date:
- Fri Mar 02 15:51:55 +0000 2007
- Size:
- 953 Bytes
1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | require 'user_mailer' |
3 | |
4 | class UserMailerTest < Test::Unit::TestCase |
5 | FIXTURES_PATH = File.dirname(__FILE__) + '/../fixtures' |
6 | CHARSET = "utf-8" |
7 | all_fixtures |
8 | include ActionMailer::Quoting |
9 | |
10 | def setup |
11 | ActionMailer::Base.delivery_method = :test |
12 | ActionMailer::Base.perform_deliveries = true |
13 | ActionMailer::Base.deliveries = [] |
14 | |
15 | @expected = TMail::Mail.new |
16 | @expected.set_content_type "text", "plain", { "charset" => CHARSET } |
17 | @user = users(:joe) |
18 | end |
19 | |
20 | def test_signup |
21 | response = UserMailer.create_signup(@user, 'localhost') |
22 | assert_equal("Welcome to Beast", response.subject) |
23 | assert_equal(@user.email, response.to[0]) |
24 | assert_match(@user.login_key, response.body) |
25 | end |
26 | |
27 | private |
28 | def read_fixture(action) |
29 | IO.readlines("#{FIXTURES_PATH}/user_mailer/#{action}") |
30 | end |
31 | |
32 | def encode(subject) |
33 | quoted_printable(subject, CHARSET) |
34 | end |
35 | end |