Created
May 16, 2010 01:25
-
-
Save simonjefford/402571 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/actionpack/test/controller/capture_test.rb b/actionpack/test/controller/capture_test.rb | |
index 06a5af6..d1dbd53 100644 | |
--- a/actionpack/test/controller/capture_test.rb | |
+++ b/actionpack/test/controller/capture_test.rb | |
@@ -61,6 +61,11 @@ class CaptureTest < ActionController::TestCase | |
assert_equal expected_content_for_output, @response.body | |
end | |
+ def test_proper_block_detection | |
+ @todo = "some todo" | |
+ get :proper_block_detection | |
+ end | |
+ | |
private | |
def expected_content_for_output | |
"<title>Putting stuff in the title!</title>\n\nGreat stuff!" | |
diff --git a/actionpack/test/fixtures/test/proper_block_detection.erb b/actionpack/test/fixtures/test/proper_block_detection.erb | |
new file mode 100644 | |
index 0000000..23564db | |
--- /dev/null | |
+++ b/actionpack/test/fixtures/test/proper_block_detection.erb | |
@@ -0,0 +1 @@ | |
+<%= @todo %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment