Mercurial > hg > soundsoftware-site
comparison vendor/plugins/redmine_checkout/spec/spec_helper.rb @ 16:020926a36823 yuya
* Add redmine-checkout plugin (as of svn rev 179 of the plugin)
author | Chris Cannam |
---|---|
date | Wed, 25 Aug 2010 16:39:01 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
15:9c6c72729d91 | 16:020926a36823 |
---|---|
1 ENV['RAILS_ENV'] ||= 'test' | |
2 | |
3 # prevent case where we are using rubygems and test-unit 2.x is installed | |
4 begin | |
5 require 'rubygems' | |
6 gem "test-unit", "~> 1.2.3" | |
7 rescue LoadError | |
8 end | |
9 | |
10 begin | |
11 require "config/environment" unless defined? RAILS_ROOT | |
12 require RAILS_ROOT + '/spec/spec_helper' | |
13 rescue LoadError => error | |
14 puts <<-EOS | |
15 | |
16 You need to install rspec in your Redmine project. | |
17 Please execute the following code: | |
18 | |
19 gem install rspec-rails | |
20 script/generate rspec | |
21 | |
22 EOS | |
23 raise error | |
24 end | |
25 | |
26 Fixtures.create_fixtures File.join(File.dirname(__FILE__), "fixtures"), ActiveRecord::Base.connection.tables | |
27 require File.join(File.dirname(__FILE__), "..", "init.rb") |