Sha256: 1115e99ef711f8cca746a49c8dc9389ca4eeed49a7fc22468f60f21ce0faf8e4
Contents?: true
Size: 469 Bytes
Versions: 3
Compression:
Stored size: 469 Bytes
Contents
$:.push File.expand_path('../../lib', __FILE__) require 'bundler/setup' require 'minitest/spec' require 'minitest/mock' MiniTest::Unit.autorun require 'sinatra/hackety_sling/post' include Sinatra::HacketySling describe Post do it 'should return the correct date permalink' do assert_equal '/2010/08/09/', Post.first.date_permalink end it 'should return the correct permalink' do assert_equal '/2010/08/09/test-post-1/', Post.first.permalink end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hackety_sling-0.0.3 | test/post_test.rb |
hackety_sling-0.0.2 | test/post_test.rb |
hackety_sling-0.0.1 | test/post_test.rb |