aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2010-01-05 11:47:10 -0600
committerJoshua Peek <josh@joshpeek.com>2010-01-05 11:48:06 -0600
commit8ff4faf66a332b24d1a82a4e62daeabc06945dcf (patch)
tree5e23fe735c8e12ba508ef3af40db7368b27c612f /railties
parent2dc5aeed6d73fb7c68bdfb675e025747a341697a (diff)
downloadrails-8ff4faf66a332b24d1a82a4e62daeabc06945dcf.tar.gz
rails-8ff4faf66a332b24d1a82a4e62daeabc06945dcf.tar.bz2
rails-8ff4faf66a332b24d1a82a4e62daeabc06945dcf.zip
assert_template depends on AV::Template monkey patches in action_view/test_case
Diffstat (limited to 'railties')
-rw-r--r--railties/test/application/test_test.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/railties/test/application/test_test.rb b/railties/test/application/test_test.rb
index ff6df93ebc..37175783d8 100644
--- a/railties/test/application/test_test.rb
+++ b/railties/test/application/test_test.rb
@@ -23,6 +23,31 @@ module ApplicationTests
run_test 'unit/foo_test.rb'
end
+ test "integration test" do
+ controller 'posts', <<-RUBY
+ class PostsController < ActionController::Base
+ end
+ RUBY
+
+ app_file 'app/views/posts/index.html.erb', <<-HTML
+ Posts#index
+ HTML
+
+ app_file 'test/integration/posts_test.rb', <<-RUBY
+ require 'test_helper'
+
+ class PostsTest < ActionController::IntegrationTest
+ def test_index
+ get '/posts'
+ assert_response :success
+ assert_template "index"
+ end
+ end
+ RUBY
+
+ run_test 'integration/posts_test.rb'
+ end
+
private
def run_test(name)
result = ruby '-Itest', "#{app_path}/test/#{name}"