diff --git a/Gemfile b/Gemfile index 94e95b54..e81e3928 100644 --- a/Gemfile +++ b/Gemfile @@ -5,13 +5,14 @@ gem 'celluloid', "~> 0.12.0" gem 'slim' gem 'sass' gem 'rails', '3.2.8' -gem 'sqlite3' +gem 'sqlite3', :platform => :mri group :test do gem 'simplecov', :require => false end group :development do + gem 'pry', :platform => :mri gem 'sprockets-sass' gem 'compass' gem 'shotgun' diff --git a/sidekiq.gemspec b/sidekiq.gemspec index 940043b9..e10bcdf1 100644 --- a/sidekiq.gemspec +++ b/sidekiq.gemspec @@ -28,5 +28,4 @@ Gem::Specification.new do |gem| gem.add_development_dependency 'rake' gem.add_development_dependency 'actionmailer', '~> 3' gem.add_development_dependency 'activerecord', '~> 3' - gem.add_development_dependency 'pry' end diff --git a/test/helper.rb b/test/helper.rb index 9ffb1244..c838704e 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -4,7 +4,10 @@ if ENV.has_key?("SIMPLECOV") SimpleCov.start end -require 'pry' +begin + require 'pry' +rescue LoadError +end require 'minitest/unit' require 'minitest/pride' diff --git a/test/test_retry.rb b/test/test_retry.rb index 91bbd3e2..aab5a55f 100644 --- a/test/test_retry.rb +++ b/test/test_retry.rb @@ -35,7 +35,7 @@ class TestRetry < MiniTest::Unit::TestCase end end assert msg["error_backtrace"] - assert_equal c, msg["error_backtrace"] + assert_equal c[0], msg["error_backtrace"][0] end it 'saves partial backtraces' do