Sha256: c09d6cbf6120736f5517026cdcefb30fcbb0035687a178e4a63ae18f16ccb0b3

Contents?: true

Size: 704 Bytes

Versions: 5

Compression:

Stored size: 704 Bytes

Contents

require 'support/test_helper'
require 'date'

module RubySlippers::Engine
  context "Routes" do
    setup do
      @config = Config.new(:markdown => true, :author => AUTHOR, :url => URL)
      @ruby_slippers = Rack::MockRequest.new(App.new(@config))  
      
      if File.expand_path("../../", __FILE__) =~ /engine/
        Paths[:articles]  = "test/fixtures/articles"
        Paths[:templates] = "test/fixtures/templates"
        Paths[:pages]     = "test/fixtures/pages"
      end
    end

    context "GET /about" do
      setup { @ruby_slippers.get('/about') }
      asserts("return a 200") { topic.status }.equals 200
      asserts("body is not empty")  { not topic.body.empty? }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby_slippers-0.2.15 test/integration/about_test.rb
ruby_slippers-0.2.8 test/integration/about_test.rb
ruby_slippers-0.2.4 test/integration/about_test.rb
ruby_slippers-0.2.3 test/integration/about_test.rb
ruby_slippers-0.2.0 test/integration/about_test.rb