Sha256: a8df9b18b689a7b58f759bd7f05592af9e6caa6e7e3cbcdf1dba1d333391f14c
Contents?: true
Size: 865 Bytes
Versions: 3
Compression:
Stored size: 865 Bytes
Contents
require 'support/test_helper' context RubySlippers::Engine::Article do setup do @config = RubySlippers::Engine::Config.new(:markdown => true, :author => AUTHOR, :url => URL) @ruby_slippers = Rack::MockRequest.new(RubySlippers::Engine::App.new(@config)) RubySlippers::Engine::Paths[:articles] = "test/fixtures/articles" RubySlippers::Engine::Paths[:pages] = "test/fixtures/pages" RubySlippers::Engine::Paths[:templates] = "test/fixtures/templates" end context "GET /index.xml (atom feed)" do setup { @ruby_slippers.get('/index.xml') } asserts("content type is set properly") { topic.content_type }.equals "application/xml" asserts("body should be valid xml") { topic.body }.includes_html("feed > entry" => /.+/) asserts("summary shouldn't be empty") { topic.body }.includes_html("summary" => /.{10,}/) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby-slippers-0.0.13 | test/integration/atom_test.rb |
ruby-slippers-0.0.5 | test/integration/atom_test.rb |
ruby-slippers-0.0.1 | test/integration/atom_test.rb |