-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: eliminate deprecation warnings
- Loading branch information
1 parent
d3d6345
commit 743bd72
Showing
3 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 } | ||
|
@@ -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' } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters