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

Version Path
opal-1.8.3.rc1 spec/opal/stdlib/promise/error_spec.rb
opal-1.8.2 spec/opal/stdlib/promise/error_spec.rb
opal-1.8.1 spec/opal/stdlib/promise/error_spec.rb
opal-1.8.0 spec/opal/stdlib/promise/error_spec.rb
opal-1.8.0.beta1 spec/opal/stdlib/promise/error_spec.rb
opal-1.7.4 spec/opal/stdlib/promise/error_spec.rb
opal-1.8.0.alpha1 spec/opal/stdlib/promise/error_spec.rb
opal-1.7.3 spec/opal/stdlib/promise/error_spec.rb
opal-1.7.2 spec/opal/stdlib/promise/error_spec.rb
opal-1.7.1 spec/opal/stdlib/promise/error_spec.rb
opal-1.7.0 spec/opal/stdlib/promise/error_spec.rb
opal-1.7.0.rc1 spec/opal/stdlib/promise/error_spec.rb
opal-1.6.1 spec/opal/stdlib/promise/error_spec.rb
opal-1.6.0 spec/opal/stdlib/promise/error_spec.rb
opal-1.6.0.rc1 spec/opal/stdlib/promise/error_spec.rb
opal-1.6.0.alpha1 spec/opal/stdlib/promise/error_spec.rb
opal-1.5.1 spec/opal/stdlib/promise/error_spec.rb
opal-1.5.0 spec/opal/stdlib/promise/error_spec.rb
opal-1.5.0.rc1 spec/opal/stdlib/promise/error_spec.rb
opal-1.4.1 spec/opal/stdlib/promise/error_spec.rb