Permalink
Browse files

* Add test specs to aid eyeballing functionality in

   preparation for pulling in other pull requests.
 * Use 'clean_backtrace' conditionally if available
   (clean_backtrace is provided by ActiveSupport)
  • Loading branch information...
duskhacker committed Sep 1, 2011
1 parent 196a6cb commit 8fe10e4f6a2940271ce1089b717dd34a471d6a40
@@ -18,7 +18,11 @@ def dump_failure counter, failure
data << failure.exception.message
data << "\n+-+ Backtrace\n"
- data << failure.exception.clean_backtrace.join("\n")
+ data << if failure.exception.respond_to?(:clean_backtrace)
+ failure.exception.clean_backtrace.join("\n")
+ else
+ failure.exception.backtrace.join("\n")
+ end
data << "\n-+-\n" * 2
output.puts data
end
View
@@ -0,0 +1,2 @@
+gem 'rspec', '= 1.3.1'
+gem 'rspec-rails', '=1.3.3'
View
@@ -0,0 +1,14 @@
+GEM
+ specs:
+ rack (1.2.3)
+ rspec (1.3.1)
+ rspec-rails (1.3.3)
+ rack (>= 1.0.0)
+ rspec (= 1.3.1)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ rspec (= 1.3.1)
+ rspec-rails (= 1.3.3)
@@ -0,0 +1,11 @@
+describe "A Test" do
+ it "should pass" do
+ true.should be_true
+ end
+
+ it "should fail" do
+ true.should_not be_true
+ end
+
+ it "should be pending"
+end
View
@@ -0,0 +1 @@
+gem 'rspec'
View
@@ -0,0 +1,17 @@
+GEM
+ specs:
+ diff-lcs (1.1.2)
+ rspec (2.6.0)
+ rspec-core (~> 2.6.0)
+ rspec-expectations (~> 2.6.0)
+ rspec-mocks (~> 2.6.0)
+ rspec-core (2.6.4)
+ rspec-expectations (2.6.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.6.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ rspec
@@ -0,0 +1,11 @@
+describe "A Test" do
+ it "should pass" do
+ true.should be_true
+ end
+
+ it "should fail" do
+ fail "It failed!"
+ end
+
+ it "should be pending"
+end

0 comments on commit 8fe10e4

Please sign in to comment.