File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,12 @@ def initialize
36
36
describe "##{ method } " do
37
37
38
38
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
40
45
end
41
46
42
47
it 'should block on the event if timeout is not set' do
Original file line number Diff line number Diff line change 27
27
Dir [ File . join ( File . dirname ( __FILE__ ) , 'support/**/*.rb' ) ] . each { |f | require File . expand_path ( f ) }
28
28
29
29
RSpec . configure do |config |
30
+ #config.raise_errors_for_deprecations!
30
31
config . order = 'random'
31
- config . treat_symbols_as_metadata_keys_with_true_values = true
32
32
33
33
config . before ( :each ) do
34
34
#TODO: Better configuration management in individual test suites
You can’t perform that action at this time.
0 commit comments