Sha256: e5c1ba16cfbfe8ea15f88bd1ce57e2942c7c86cb43cb232e3cdda915c15a3b5a

Contents?: true

Size: 463 Bytes

Versions: 3

Compression:

Stored size: 463 Bytes

Contents

$:.push File.expand_path('../../lib', __FILE__)

require 'bundler/setup'
require 'minitest/autorun'

require 'sinatra/hackety_sling/post'
include Sinatra::HacketySling

describe Post do
  it 'returns the correct date permalink' do
    assert_equal '/2010/08/09/', Post.order_by(:title => :asc).first.date_permalink
  end

  it 'returns the correct permalink' do
    assert_equal '/2010/08/09/test-post-1/', Post.order_by(:title => :asc).first.permalink
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hackety_sling-0.1.3 test/post_test.rb
hackety_sling-0.1.2 test/post_test.rb
hackety_sling-0.1.1 test/post_test.rb