Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 1245 Bytes
1 | SPEC_ROOT = File.expand_path(File.dirname(__FILE__)) |
2 | require "#{SPEC_ROOT}/../plugit/descriptor" |
3 | |
4 | # From RSpec's spec_helper.rb. Necessary to run an example group. |
5 | def with_sandboxed_options |
6 | attr_reader :options |
7 | |
8 | before(:each) do |
9 | @original_rspec_options = ::Spec::Runner.options |
10 | ::Spec::Runner.use(@options = ::Spec::Runner::Options.new(StringIO.new, StringIO.new)) |
11 | end |
12 | |
13 | after(:each) do |
14 | ::Spec::Runner.use(@original_rspec_options) |
15 | end |
16 | |
17 | yield |
18 | end |
19 | |
20 | $LOAD_PATH << SPEC_ROOT |
21 | RAILS_ROOT = "#{SPEC_ROOT}/.." |
22 | $LOAD_PATH << "#{RAILS_ROOT}/lib" |
23 | RAILS_LOG_FILE = "#{RAILS_ROOT}/log/test.log" |
24 | SQLITE_DATABASE = "#{SPEC_ROOT}/sqlite3.db" |
25 | |
26 | require 'fileutils' |
27 | FileUtils.mkdir_p(File.dirname(RAILS_LOG_FILE)) |
28 | FileUtils.touch(RAILS_LOG_FILE) |
29 | FileUtils.mkdir_p("#{SPEC_ROOT}/tmp") |
30 | FileUtils.rm_rf("#{SPEC_ROOT}/tmp/*") |
31 | FileUtils.rm_f(SQLITE_DATABASE) |
32 | |
33 | require 'logger' |
34 | RAILS_DEFAULT_LOGGER = Logger.new(RAILS_LOG_FILE) |
35 | RAILS_DEFAULT_LOGGER.level = Logger::DEBUG |
36 | |
37 | ActiveRecord::Base.silence do |
38 | ActiveRecord::Base.configurations = {'test' => { |
39 | 'adapter' => 'sqlite3', |
40 | 'database' => SQLITE_DATABASE |
41 | }} |
42 | ActiveRecord::Base.establish_connection 'test' |
43 | load "#{SPEC_ROOT}/schema.rb" |
44 | end |
45 | |
46 | require "models" |
47 | require "dataset" |