Sha256: 16c2622725d80e191d99564b1d6c03804da1607769ebc488e31eada5c61ddca1

Contents?: true

Size: 410 Bytes

Versions: 10

Compression:

Stored size: 410 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Normalizy::Config, 'default_filters' do
  context 'when get' do
    it 'returns the default filters' do
      expect(subject.default_filters).to eq({})
    end
  end

  context 'when set' do
    before { subject.default_filters = :blank }

    it 'keeps the original' do
      expect(subject.default_filters).to eq :blank
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
normalizy-1.5.0 spec/normalizy/config/default_filters_spec.rb
normalizy-1.4.0 spec/normalizy/config/default_filters_spec.rb
normalizy-1.3.0 spec/normalizy/config/default_filters_spec.rb
normalizy-1.2.0 spec/normalizy/config/default_filters_spec.rb
normalizy-1.1.1 spec/normalizy/config/default_filters_spec.rb
normalizy-1.1.0 spec/normalizy/config/default_filters_spec.rb
normalizy-1.0.1 spec/normalizy/config/default_filters_spec.rb
normalizy-1.0.0 spec/normalizy/config/default_filters_spec.rb
normalizy-0.2.0 spec/normalizy/config/default_filters_spec.rb
normalizy-0.1.0 spec/normalizy/config/default_filters_spec.rb