aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/spec/spec_helper.rb
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2007-11-09 14:59:15 +0000
committerRick Olson <technoweenie@gmail.com>2007-11-09 14:59:15 +0000
commit5dc3f91832fd8580287e5cbeba478bb8b9580dc1 (patch)
tree855cfa84f7002222dff496a4f8247447463045e7 /activemodel/spec/spec_helper.rb
parentfcfcc707d4ae94441496d36e78a598914df3cebc (diff)
downloadrails-5dc3f91832fd8580287e5cbeba478bb8b9580dc1.tar.gz
rails-5dc3f91832fd8580287e5cbeba478bb8b9580dc1.tar.bz2
rails-5dc3f91832fd8580287e5cbeba478bb8b9580dc1.zip
initial experimental commit of active_model
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8118 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activemodel/spec/spec_helper.rb')
-rw-r--r--activemodel/spec/spec_helper.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/activemodel/spec/spec_helper.rb b/activemodel/spec/spec_helper.rb
new file mode 100644
index 0000000000..004fdfca07
--- /dev/null
+++ b/activemodel/spec/spec_helper.rb
@@ -0,0 +1,17 @@
+ENV['LOG_NAME'] = 'spec'
+$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'vendor', 'rspec', 'lib')
+$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
+require 'active_model'
+begin
+ require 'spec'
+rescue LoadError
+ require 'rubygems'
+ require 'spec'
+end
+
+begin
+ require 'ruby-debug'
+ Debugger.start
+rescue LoadError
+ # you do not know the ways of ruby-debug yet, what a shame
+end \ No newline at end of file