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