Sha256: dd3183b65eb85117fee81bfb5571015f15c02a012a772c1827c205fd4814346c
Contents?: true
Size: 1.43 KB
Versions: 1
Compression:
Stored size: 1.43 KB
Contents
module AtomicSpecHelper def valid_entry_attributes { :id => "entry_id", :title => "Atom Entry Title", :categories => [ {:term => 'treforest', :scheme => 'http://cirrusstage.glam.ac.uk/schemes/locations'}, {:term => 'hesas', :scheme => 'http://cirrusstage.glam.ac.uk/schemes/categories'} ], :content => { :message=>"Test Announcement Message", :starts_at=>"2009-02-10T08:00:00Z", :ends_at=>"2009-02-10T17:00:00Z" } } end def valid_feed_attributes { :id => 'feed_id', :title => 'Feed Title', :entries => [ Atomic::Atom::Entry.new(valid_entry_attributes) ] } end def valid_collection_attributes { :href => 'http://example.org/collection', :title => 'Collection Title', :accepts => ['application/atom+xml;type=entry'], :categories => [ {:scheme => 'http://example.org/scheme', :term => 'category1'}, {:scheme => 'http://example.org/scheme', :term => 'category2'} ] } end def valid_workspace_attributes { :title => 'Workspace Title', :collections => [Atomic::Atompub::Collection.new(valid_collection_attributes)] } end def valid_service_attributes { :workspaces => [Atomic::Atompub::Workspace.new(valid_workspace_attributes)] } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
exempla-atomic-0.0.12 | spec/atomic/atomic_spec_helper.rb |