Skip to content

Commit

Permalink
test: eliminate deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nkondratyev committed Aug 1, 2017
1 parent d3d6345 commit 743bd72
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions resque-integration.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Gem::Specification.new do |gem|

gem.add_development_dependency 'bundler'
gem.add_development_dependency 'rspec', '~> 2.14'
gem.add_development_dependency 'rspec-its'
gem.add_development_dependency 'simplecov'
gem.add_development_dependency 'appraisal', '>= 1.0.2'
gem.add_development_dependency 'combustion', '>= 0.5.5'
Expand Down
12 changes: 6 additions & 6 deletions spec/resque/integration/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,25 @@

describe '#resque_scheduler?' do
context 'when default' do
it { expect(config.resque_scheduler?).to be_true }
it { expect(config.resque_scheduler?).to be_truthy }
end

context 'when defined' do
let(:config_yaml) { {'resque' => {'scheduler' => 'no'}} }

it { expect(config.resque_scheduler?).to be_false }
it { expect(config.resque_scheduler?).to be_falsey }
end
end

describe '#run_at_exit_hooks?' do
context 'when default' do
it { expect(config.resque_scheduler?).to be_true }
it { expect(config.resque_scheduler?).to be_truthy }
end

context 'when defined' do
let(:config_yaml) { {'resque' => {'run_at_exit_hooks' => 'no'}} }

it { expect(config.run_at_exit_hooks?).to be_false }
it { expect(config.run_at_exit_hooks?).to be_falsey }
end
end
end
Expand All @@ -61,7 +61,7 @@
subject(:config) { described_class::new(nil) }

it { should_not be_enabled }
its(:include_payload?) { should be_true }
its(:include_payload?) { should be_truthy }
its(:to) { should be_empty }
its(:from) { should eq '[email protected]' }
its(:mail) { should eq :alert }
Expand All @@ -81,7 +81,7 @@
subject(:config) { described_class::new(configuration) }

it { should_not be_enabled }
its(:include_payload?) { should be_false }
its(:include_payload?) { should be_falsey }
its(:to) { should include 'to1@mail' }
its(:to) { should include 'to2@mail' }
its(:from) { should eq 'from@mail' }
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coding: utf-8
require 'bundler/setup'
require 'rspec'
require 'rspec/its'
require 'resque'
require 'simplecov'
require 'mock_redis'
Expand Down

0 comments on commit 743bd72

Please sign in to comment.