Sha256: fbccd2efa5eb6d8125ce52112d08f381516e507d62b47353b949af7ebcc050d9
Contents?: true
Size: 758 Bytes
Versions: 1
Compression:
Stored size: 758 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' # rubocop:todo RSpec/SpecFilePathFormat describe Caramelize::Filter::AddNewlineToPageEnd do # rubocop:todo RSpec/FilePath, RSpec/SpecFilePathFormat # rubocop:enable RSpec/SpecFilePathFormat describe '#run' do subject(:run) { filter.run } let(:filter) { described_class.new(body) } context 'with newline on body end' do let(:body) { "Here is a sample body\n" } it 'adds no newline character' do expect(run).to eq "Here is a sample body\n" end end context 'without newline on body end' do let(:body) { 'Here is a sample body' } it 'adds newline character' do expect(run).to eq "Here is a sample body\n" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caramelize-1.2.1 | spec/lib/caramelize/filters/add_newline_to_page_end_spec.rb |