Sha256: 1f02bb2633629d5dd83aa9a407c5b48112989545b218316378dd1b99fce040e8
Contents?: true
Size: 617 Bytes
Versions: 5
Compression:
Stored size: 617 Bytes
Contents
require 'spec_helper' describe Slacken::DocumentComponent do let(:document_component) { described_class.build_by_html(source) } # If you change the behavior, you should run `scripts/update_markup_fixture.rb` # to update fixture file. let(:source) { fixture('example.html') } describe '#normalize' do subject { document_component.normalize } Slacken::DocumentComponent::NORMALIZE_FILTERS.each do |klass| context "when #{klass.name} checks the result's validity" do let(:filter) { klass.new } it { is_expected.to satisfy(&filter.method(:valid?)) } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems