Sha256: 0ef0d3af5f99791716b8da12f994b5c29d0ff4787f8bb819d936538f4c8c737f

Contents?: true

Size: 650 Bytes

Versions: 4

Compression:

Stored size: 650 Bytes

Contents

require 'spec_helper'
require 'active_support'
require 'napa/deprecations/application_api'

describe Napa::Deprecations do
  describe '.application_api_check' do
    it 'does not raise a deprecation warning if the file exists' do
      allow(File).to receive(:exists?).and_return(true)
      expect(ActiveSupport::Deprecation).to_not receive(:warn)
      Napa::Deprecations.application_api_check
    end

    it 'raises a deprecation warning if the file is missing' do
      allow(File).to receive(:exists?).and_return(false)
      expect(ActiveSupport::Deprecation).to receive(:warn)
      Napa::Deprecations.application_api_check
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
napa-0.5.0 spec/deprecations/application_api_spec.rb
napa-0.4.3 spec/deprecations/application_api_spec.rb
napa-0.4.1 spec/deprecations/application_api_spec.rb
napa-0.4.0 spec/deprecations/application_api_spec.rb