Skip to content

Instantly share code, notes, and snippets.

@r00k
Created August 14, 2009 15:39
Show Gist options
  • Save r00k/167900 to your computer and use it in GitHub Desktop.
Save r00k/167900 to your computer and use it in GitHub Desktop.
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