Sha256: 483dcc2b54df648e6dff2a90563751c7b8e0b92e71c6792fb7cb02b5fb51da45

Contents?: true

Size: 400 Bytes

Versions: 1

Compression:

Stored size: 400 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Yardstick::Rules::Summary::Presence, '#valid?' do
  subject { described_class.new(document).valid? }

  let(:document) { double('document', summary_text: text) }

  context 'with summary' do
    let(:text) { 'A summary' }

    it { should be(true) }
  end

  context 'without summary' do
    let(:text) { '' }

    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/presence/valid_predicate_spec.rb