Sha256: 72a42f6bd6a996502b8b8e09d3d1984fdb2abcae4010ab967b98a7d0c43eaef0
Contents?: true
Size: 555 Bytes
Versions: 3
Compression:
Stored size: 555 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, date: Normalizy::Filters::Date, money: Normalizy::Filters::Money, number: Normalizy::Filters::Number, percent: Normalizy::Filters::Percent, strip: Normalizy::Filters::Strip ) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
normalizy-1.0.1 | spec/normalizy/config/add_spec.rb |
normalizy-1.0.0 | spec/normalizy/config/add_spec.rb |
normalizy-0.2.0 | spec/normalizy/config/add_spec.rb |