Skip to content

Commit 1d5dc14

Browse files
committed
[Rails3] Safe require for ruby-debug for testing in 1.9.x.
1 parent 549af3f commit 1d5dc14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/cases/sqlserver_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
Bundler.setup
1212
require 'shoulda'
1313
require 'mocha'
14-
require 'ruby-debug'
14+
begin ; require 'ruby-debug' ; rescue LoadError ; end
1515
[ File.expand_path(File.join(File.dirname(__FILE__),'..','..','test')),
1616
File.expand_path(File.join(File.dirname(__FILE__),'..','..','test','connections','native_sqlserver_odbc')),
1717
File.expand_path(File.join(ENV['RAILS_SOURCE'],'activerecord','test'))

0 commit comments

Comments
 (0)