Skip to content

Commit 5f6524b

Browse files
Markus Schirpdchelimsky
authored andcommitted
fix to missing test/unit/assertionfailederror on ruby 1.9.1
1 parent 08e9a2d commit 5f6524b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

lib/rspec/rails/matchers.rb

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
require 'rspec/matchers'
2-
require 'test/unit/assertionfailederror'
2+
3+
#try to fix load error for ruby1.9.1
4+
begin
5+
require 'test/unit/assertionfailederror'
6+
rescue LoadError
7+
module Test
8+
module Unit
9+
class AssertionFailedError < StandardError
10+
end
11+
end
12+
end
13+
end
314

415
module Rspec
516
module Rails

0 commit comments

Comments
 (0)