Looking for a pretty code viewer for this blog...
March 07, 2010\* Updated: Working thanks to this WP plugin.
Here's some code as a test:
require File.dirname(__FILE__) + '/../test_helper.rb' class FundastacheTest < Test::Unit::TestCase include Rack::Test::Methods def app @app ||= FundAStache::Application end def test_home_page_ok get '/' assert last_response.ok? end def test_404_error get '/does_not_exist' assert !last_response.ok? end def test_custom_404_error get '/does_not_exist' assert last_response.body.include?("what\'cha lookin\' for?") end end
and I want it to look nice. How can we do that with Wordpress?