spec/markaby/rails_spec.rb in markaby-0.6.10 vs spec/markaby/rails_spec.rb in markaby-0.7.0
- old
+ new
@@ -114,10 +114,13 @@
end
def routes
end
+ def commented_out_template
+ end
+
def render_with_yielding
render :layout => "layout.mab",
:template => "markaby/yielding"
end
@@ -250,9 +253,17 @@
def test_routes_work
get :routes
assert_response :success
expected_output = "<a href=\"/users/new\">Foo</a>"
+ assert_equal expected_output, @response.body
+ end
+
+ def test_commented_out_template_cant_raise_errors
+ get :commented_out_template
+ assert_response :success
+
+ expected_output = ""
assert_equal expected_output, @response.body
end
if Rails::VERSION::MAJOR >= 2
def test_renders_form_for_properly