Sha256: 66d3e499d9376f2a81db2c77aa76ce169229d4695b1b313994f143fe96ddade3
Contents?: true
Size: 496 Bytes
Versions: 15
Compression:
Stored size: 496 Bytes
Contents
describe SirTrevorRails::Blocks::SolrDocumentsBlock do let(:page) { FactoryBot.create(:feature_page) } let(:block_data) { {} } subject { described_class.new({ type: '', data: block_data }, page) } describe '#text' do it "is the block's text data" do block_data[:text] = 'abc' expect(subject.text).to eq 'abc' end it "squelches sir-trevor's placeholder values" do block_data[:text] = '<p><br></p>' expect(subject.text).to be_blank end end end
Version data entries
15 entries across 15 versions & 1 rubygems