aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Rakefile1
-rw-r--r--spec/spec.opts3
2 files changed, 4 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 91170a65f9..0564da23ca 100644
--- a/Rakefile
+++ b/Rakefile
@@ -54,6 +54,7 @@ else
for adapter in %w[mysql sqlite3 postgresql]
desc "Run specs with the #{adapter} database adapter"
Spec::Rake::SpecTask.new(adapter) do |t|
+ t.spec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
t.libs << "#{File.dirname(__FILE__)}/vendor/rails/activerecord/lib"
t.libs << "#{File.dirname(__FILE__)}/spec"
t.warning = true
diff --git a/spec/spec.opts b/spec/spec.opts
new file mode 100644
index 0000000000..ef88ff877b
--- /dev/null
+++ b/spec/spec.opts
@@ -0,0 +1,3 @@
+--backtrace
+--diff
+--color \ No newline at end of file