Sha256: 892de762cd6c836eb8d3f8bef7b124bac7d7fbbd750822bdced20949571a3ff9
Contents?: true
Size: 407 Bytes
Versions: 1
Compression:
Stored size: 407 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Yardstick::Rules::Summary::Delimiter, '#valid?' do subject { described_class.new(document).valid? } let(:document) { double('document', summary_text: text) } context 'without a dot' do let(:text) { 'A summary' } it { should be(true) } end context 'with a dot' do let(:text) { 'A 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/delimiter/valid_predicate_spec.rb |