Sha256: 32210de5a4f3b6ed9e085ee868d21190f163150fe9f4d273ecb75fc48ef9c145

Contents?: true

Size: 299 Bytes

Versions: 4

Compression:

Stored size: 299 Bytes

Contents

require 'spec_helper'

describe "Napa::FilterByHash Deprecation" do
  it 'raises a deprecation warning when mixed in to a class' do
    expect(ActiveSupport::Deprecation).to receive(:warn)
    class FooModel; include Napa::FilterByHash; end
    ActiveSupport::Deprecation.silenced = false
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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