Created
August 14, 2009 15:39
-
-
Save r00k/167900 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
require File.dirname(__FILE__) + '/../test_helper' | |
class ApplicationLevelTest < ActionController::TestCase | |
# This class holds tests for application-level components: layouts, application_controller elements, etc | |
class GoogleAnalyticsController < ApplicationController | |
def any_action | |
end | |
end | |
tests GoogleAnalyticsController | |
def test_google_analytics_code_appears_in_all_pages | |
get :any_action | |
assert_repsonse :success | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment