Sha256: f4329b7102dce58a006a33ea94bff8b67c790a33489fd54ac83a2bbefa174ed0

Contents?: true

Size: 695 Bytes

Versions: 1

Compression:

Stored size: 695 Bytes

Contents

require 'spec_helper'
require 'active_support'
require 'service_template/deprecations/application_api'

describe ServiceTemplate::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)
      ServiceTemplate::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)
      ServiceTemplate::Deprecations.application_api_check
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
service_template-0.5.0 spec/deprecations/application_api_spec.rb