Sha256: 1bfad89efad07bb8b5beb38f2a3e19c56af1e8bf30647caaec714a8d74b63156
Contents?: true
Size: 1.32 KB
Versions: 5
Compression:
Stored size: 1.32 KB
Contents
require File.expand_path('../spec_helper', __FILE__) describe "Saga" 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 = ActiveSupport::OrderedHash.new [ ['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.' } ]] ].each do |key, stories| @document.stories[key] = stories end end it "round-trips through the parser and formatter" do document = @document 2.times do saga = Saga::Formatter.saga_format(document) document = Saga::Parser.parse(saga) end document.title.should == @document.title document.authors.should == @document.authors document.stories.should == @document.stories end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
saga-0.8.1 | test/saga_spec.rb |
saga-0.8.0 | test/saga_spec.rb |
saga-0.7.1 | test/saga_spec.rb |
saga-0.7.0 | test/saga_spec.rb |
saga-0.6.0 | test/saga_spec.rb |