Sha256: 2b279e40383b3374c5b53cc9af59b618e477431ba8c2f74605c5c153aca89690

Contents?: true

Size: 422 Bytes

Versions: 33

Compression:

Stored size: 422 Bytes

Contents

require 'lib/spec_helper'
require 'opal/deprecations'

RSpec.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

33 entries across 33 versions & 1 rubygems

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