Sha256: 5ca94e25beb31c83451a52a2a23828d552ca45c5e7c716834b78d701f52429f4
Contents?: true
Size: 439 Bytes
Versions: 1
Compression:
Stored size: 439 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Yardstick::Rules::Summary::SingleLine, '#valid?' do subject { described_class.new(document).valid? } let(:document) { double('document', summary_text: text) } context 'with one line summary' do let(:text) { 'A summary' } it { should be(true) } end context 'with more than one line' do let(:text) { "A summary\nA summary" } it { should be(false) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yardstick-0.9.7 | spec/unit/yardstick/rules/summary/single_line/valid_predicate_spec.rb |