Skip to content

Commit 9d80c6a

Browse files
committed
Fixed broken Obligation specs.
1 parent 53ddc1f commit 9d80c6a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

spec/concurrent/obligation_spec.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ def initialize
3636
describe "##{method}" do
3737

3838
it 'should return immediately if timeout is zero' do
39-
expect(obligation.send(method, 0)).to(method eq(:no_error!) ? eq(obligation) : be_nil)
39+
result = obligation.send(method, 0)
40+
if method == :no_error!
41+
expect(result).to eq obligation
42+
else
43+
expect(result).to be_nil
44+
end
4045
end
4146

4247
it 'should block on the event if timeout is not set' do

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require File.expand_path(f) }
2828

2929
RSpec.configure do |config|
30+
#config.raise_errors_for_deprecations!
3031
config.order = 'random'
31-
config.treat_symbols_as_metadata_keys_with_true_values = true
3232

3333
config.before(:each) do
3434
#TODO: Better configuration management in individual test suites

0 commit comments

Comments
 (0)