diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-10-20 08:54:38 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-10-20 08:54:38 +0200 |
commit | d207adb24ca6d2448c2a8fb409bf62576c8044e0 (patch) | |
tree | cd27592a2a32e7deb2f84b40fabf0e1f1427fd37 | |
parent | a702d5aad5e533291267443ad523691e52aa0bd7 (diff) | |
parent | 86608537701fb52d3515049efac8646a6914e461 (diff) | |
download | rails-d207adb24ca6d2448c2a8fb409bf62576c8044e0.tar.gz rails-d207adb24ca6d2448c2a8fb409bf62576c8044e0.tar.bz2 rails-d207adb24ca6d2448c2a8fb409bf62576c8044e0.zip |
Merge pull request #17324 from vipulnsward/activejob-warnings
Enable emitting of warnings from ActiveJob tests.
6 files changed, 7 insertions, 5 deletions
diff --git a/activejob/Rakefile b/activejob/Rakefile index a66df8939e..7e66860b36 100644 --- a/activejob/Rakefile +++ b/activejob/Rakefile @@ -35,6 +35,7 @@ namespace :test do t.libs << 'test' t.test_files = FileList['test/cases/**/*_test.rb'] t.verbose = true + t.warning = true t.ruby_opts = ["--dev"] if defined?(JRUBY_VERSION) end @@ -53,6 +54,7 @@ namespace :test do t.libs << 'test' t.test_files = FileList['test/integration/**/*_test.rb'] t.verbose = true + t.warning = true t.ruby_opts = ["--dev"] if defined?(JRUBY_VERSION) end end diff --git a/activejob/test/support/integration/adapters/backburner.rb b/activejob/test/support/integration/adapters/backburner.rb index 0cda36a273..2e82562948 100644 --- a/activejob/test/support/integration/adapters/backburner.rb +++ b/activejob/test/support/integration/adapters/backburner.rb @@ -29,7 +29,7 @@ module BackburnerJobsManager def can_run? begin Backburner::Worker.connection.send :connect! - rescue => e + rescue return false end true diff --git a/activejob/test/support/integration/adapters/qu.rb b/activejob/test/support/integration/adapters/qu.rb index e913f04a24..3a5b66a057 100644 --- a/activejob/test/support/integration/adapters/qu.rb +++ b/activejob/test/support/integration/adapters/qu.rb @@ -30,7 +30,7 @@ module QuJobsManager def can_run? begin Qu.backend.connection.client.connect - rescue => e + rescue return false end true diff --git a/activejob/test/support/integration/adapters/resque.rb b/activejob/test/support/integration/adapters/resque.rb index 9de3e7c879..82acb17b2b 100644 --- a/activejob/test/support/integration/adapters/resque.rb +++ b/activejob/test/support/integration/adapters/resque.rb @@ -41,7 +41,7 @@ module ResqueJobsManager def can_run? begin Resque.redis.client.connect - rescue => e + rescue return false end true diff --git a/activejob/test/support/integration/adapters/sidekiq.rb b/activejob/test/support/integration/adapters/sidekiq.rb index 0a0a549c9e..3cc9a34993 100644 --- a/activejob/test/support/integration/adapters/sidekiq.rb +++ b/activejob/test/support/integration/adapters/sidekiq.rb @@ -49,7 +49,7 @@ module SidekiqJobsManager def can_run? begin Sidekiq.redis { |conn| conn.connect } - rescue => e + rescue return false end true diff --git a/activejob/test/support/integration/adapters/sneakers.rb b/activejob/test/support/integration/adapters/sneakers.rb index f21bb38a32..875803a2d8 100644 --- a/activejob/test/support/integration/adapters/sneakers.rb +++ b/activejob/test/support/integration/adapters/sneakers.rb @@ -68,7 +68,7 @@ module SneakersJobsManager def can_run? begin bunny_publisher - rescue => e + rescue return false end true |