spec/defer_spec.rb in em-promise-1.1.0 vs spec/defer_spec.rb in em-promise-1.1.1

- old
+ new

@@ -19,11 +19,11 @@ describe 'resolve' do it "should call the callback in the next turn" do - deferred2 = EM::Defer.new + deferred2 = EM::Q.defer EventMachine.run { @promise.then(proc {|result| @log << result }, @default_fail) @@ -283,10 +283,10 @@ @log << result 'ERROR' }, @default_fail) @promise.then(proc {|result| @log << result - EM::Defer.reject('some reason') + EM::Q.reject('some reason') }, @default_fail) @promise.then(proc {|result| @log << result :alt2 }, @default_fail)