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
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
Original file line number Diff line number Diff line change 2727Dir [ File . join ( File . dirname ( __FILE__ ) , 'support/**/*.rb' ) ] . each { |f | require File . expand_path ( f ) }
2828
2929RSpec . 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
You can’t perform that action at this time.
0 commit comments