Sha256: 12d7d1cfd3b881a0f595aaa314d43a2cdcd923b2ceeb48a45f14d1dd16ea0a99
Contents?: true
Size: 1.21 KB
Versions: 1
Compression:
Stored size: 1.21 KB
Contents
require File.expand_path('../spec_helper', __FILE__) describe "Formatter" do before do @document = Saga::Document.new @document.title = 'Requirements API' @document.authors = [ {:name => 'Thijs van der Vossen', :email => 'thijs@fngtps.com', :company => 'Fingertips', :website => 'http://www.fngtps.com'}, {:name => 'Manfred Stienstra', :email => 'manfred@fngtps.com', :company => 'Fingertips', :website => 'http://www.fngtps.com'} ] @document.introduction = [ 'A web service for interfacing with the service.', 'Exposes a public API to the application.' ] @document.stories = [ ['General', [ {:description => 'As a consumer I would like to use TLS (SSL) so that my connection with the API is secure', :id => 4, :status => 'todo', :notes => 'Use a self-signed CA certificate to create the certificates.' } ]] ] end it "formats a saga document to HTML" do html = Saga::Formatter.format(@document) html.should.include('<h1>Requirements <br />Requirements API</h1>') end it "formats a saga document to saga" do saga = Saga::Formatter.format(@document, :template => 'saga') saga.should.include('Requirements Requirements API') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
saga-0.5.2 | test/saga_formatter_spec.rb |