Sha256: afcdfabf144b14476b00ed725c3e46f19c839e50f499041b6926b35b7c4fed2e
Contents?: true
Size: 337 Bytes
Versions: 77
Compression:
Stored size: 337 Bytes
Contents
require 'promise' describe 'Promise.error' do it 'rejects the promise with the given error' do Promise.error(23).error.should == 23 end it 'marks the promise as realized' do Promise.error(23).realized?.should be_true end it 'marks the promise as rejected' do Promise.error(23).rejected?.should be_true end end
Version data entries
77 entries across 77 versions & 3 rubygems