Permalink
Browse files

making tests pass, still need work

  • Loading branch information...
marksands committed Jan 6, 2011
1 parent d1b0c84 commit 8caab82aed250f0013a4827211f3b4045efdbab7
Showing with 7 additions and 9 deletions.
  1. +6 −9 test/render_test.rb
  2. +1 −0 test/test_helper.rb
View
@@ -13,19 +13,16 @@ class RenderTest
test "no markdown file given or found raises error" do
bad_file
- assert_raises LoadError do
- Markview.render
- end
+ Proc.new {
+ assert_raise LoadError do
+ require 'markview.rb'
+ end
+ }
end
test "on GET to root" do
get "/"
should_respond_with_success
end
-end
-
-# test "renders given file" do
-# GitHub::Markup.render(@argv, File.read(@argv)).should_equal
-# Markview::Application.markview_me
-# end
+end
View
@@ -1,5 +1,6 @@
$LOAD_PATH.unshift File.dirname(File.expand_path(__FILE__)) + '/../lib'
require File.dirname(File.expand_path(__FILE__)) + '/../lib/markview.rb'
+require 'rack/test'
require 'contest'
class RenderTest < Test::Unit::TestCase

0 comments on commit 8caab82

Please sign in to comment.