Sha256: 50738c1c21dd71cff03beabd8c4c46cfe670df6f7b4021756d34a28c49b1af39

Contents?: true

Size: 388 Bytes

Versions: 1

Compression:

Stored size: 388 Bytes

Contents

require 'lib/spec_helper'

describe Opal::Deprecations do
  subject { Object.new.extend described_class }

  it 'defaults to warn' do
    expect(subject).to receive(:warn)
    subject.deprecation "there's a new api!"
  end

  it 'can be set to raise' do
    subject.raise_on_deprecation = true
    expect(subject).to receive(:raise)
    subject.deprecation "there's a new api!"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
opal-0.11.0.rc1 spec/lib/deprecations_spec.rb