Sha256: f1f7eac3e0701a9bff39e15aefb9c81aa64251c088e8f9b6822082ba35ff50b9

Contents?: true

Size: 364 Bytes

Versions: 19

Compression:

Stored size: 364 Bytes

Contents

require 'unit_spec_helper'

describe Rpush::Deprecation do
  it 'prints a warning' do
    STDERR.should_receive(:puts).with("DEPRECATION WARNING: msg")
    Rpush::Deprecation.warn("msg")
  end

  it 'does not print a warning when muted' do
    STDERR.should_not_receive(:puts)
    Rpush::Deprecation.muted do
      Rpush::Deprecation.warn("msg")
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rpush-2.3.1-java spec/unit/deprecation_spec.rb
rpush-2.3.1 spec/unit/deprecation_spec.rb
rpush-2.3.0-java spec/unit/deprecation_spec.rb
rpush-2.3.0 spec/unit/deprecation_spec.rb
rpush-2.3.0.rc1 spec/unit/deprecation_spec.rb
rpush-2.2.0-java spec/unit/deprecation_spec.rb
rpush-2.2.0 spec/unit/deprecation_spec.rb
rpush-2.1.0-java spec/unit/deprecation_spec.rb
rpush-2.1.0 spec/unit/deprecation_spec.rb
rpush-2.0.1-java spec/unit/deprecation_spec.rb
rpush-2.0.1 spec/unit/deprecation_spec.rb
rpush-2.0.0-java spec/unit/deprecation_spec.rb
rpush-2.0.0 spec/unit/deprecation_spec.rb
rpush-2.0.0.rc1-java spec/unit/deprecation_spec.rb
rpush-2.0.0.rc1 spec/unit/deprecation_spec.rb
rpush-2.0.0.beta2 spec/unit/deprecation_spec.rb
rpush-2.0.0.beta1 spec/unit/deprecation_spec.rb
rpush-1.0.0-java spec/unit/deprecation_spec.rb
rpush-1.0.0 spec/unit/deprecation_spec.rb