Sha256: de127aefd58b6895f76375d39a66047d8c6f3055a2f13e839c7dad2288311fae
Contents?: true
Size: 422 Bytes
Versions: 1
Compression:
Stored size: 422 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe Normalizy::Config, '#add' do it 'adds filters to the built-in filters' do Normalizy.configure do |config| config.add :blacklist, :blacklist_filter end expect(Normalizy.config.filters).to eq( blacklist: :blacklist_filter, number: Normalizy::Filters::Number, strip: Normalizy::Filters::Strip ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
normalizy-0.1.0 | spec/normalizy/config/add_spec.rb |