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:
- 1265 Bytes
1 | ENV["RAILS_ENV"] = "test" |
2 | PASSWORD_SALT = 'beast' |
3 | require File.expand_path(File.dirname(__FILE__) + "/../config/environment") |
4 | require 'test_help' |
5 | |
6 | class Test::Unit::TestCase |
7 | self.use_transactional_fixtures = true |
8 | self.use_instantiated_fixtures = false |
9 | |
10 | def self.all_fixtures |
11 | fixtures :forums, :users, :posts, :topics, :moderatorships, :monitorships |
12 | end |
13 | |
14 | def assert_difference(object, method = nil, difference = 1) |
15 | initial_value = object.send(method) |
16 | yield |
17 | assert_equal initial_value + difference, object.send(method), "#{object}##{method}" |
18 | end |
19 | |
20 | def login_as(user) |
21 | @request.session[:user_id] = user ? users(user).id : nil |
22 | @request.session[:topics] = {} |
23 | # @controller.send :current_user=, (user ? users(user) : nil) |
24 | end |
25 | |
26 | def logout |
27 | @request.session[:user_id] = nil |
28 | @controller.instance_variable_set("@current_user",nil) |
29 | end |
30 | |
31 | def assert_models_equal(expected_models, actual_models, message = nil) |
32 | to_test_param = lambda { |r| "<#{r.class}:#{r.to_param}>" } |
33 | full_message = build_message(message, "<?> expected but was\n<?>.\n", |
34 | expected_models.collect(&to_test_param), actual_models.collect(&to_test_param)) |
35 | assert_block(full_message) { expected_models == actual_models } |
36 | end |
37 | end |