Sha256: 4a70e4bda3daaa744a9f722eba663f710ab8409db1169de2e861a474e2012932

Contents?: true

Size: 584 Bytes

Versions: 3

Compression:

Stored size: 584 Bytes

Contents

require 'spec_helper'

describe "authors section" do
  before do
    @authors = AuthorsSection.new do |sect|
                 sect.author "Michael Edgar"
                 sect.author "Ari Brown", "seydar@carboni.ca"
               end
    @groffed = @authors.to_groff
  end
  
  it "makes an authors section" do
    @groffed.should.match(/^\.Sh AUTHORS$/)
  end
  
  it "adds an author without an email" do
    @groffed.should.match(/^\.An "Michael Edgar"$/)
  end
  
  it "adds an author with an email" do
    @groffed.should.match(/^\.An "Ari Brown" Aq seydar@carboni.ca/)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rtfm-0.5.2 spec/authors_spec.rb
rtfm-0.5.1 spec/authors_spec.rb
rtfm-0.5.0 spec/authors_spec.rb