Skip to content

Commit

Permalink
MockView for test simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilio Karadanais committed May 20, 2009
1 parent 5eae5ef commit b886fbf
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions test/test_helper.rb
Expand Up @@ -87,19 +87,6 @@ def assert_true(value)
end

class EschatonMockView
attr_accessor :template_format
include ActionView::Helpers::JavaScriptHelper
include ActionView::Helpers::PrototypeHelper
include ActionView::Helpers::ScriptaculousHelper

include ActionView::Helpers::UrlHelper
include ActionView::Helpers::TagHelper
include ActionView::Helpers::TextHelper
include ActionView::Helpers::FormTagHelper
include ActionView::Helpers::FormHelper
include ActionView::Helpers::CaptureHelper
include ActionView::Helpers::RecordIdentificationHelper
include ActionController::PolymorphicRoutes

def url_for(options)
options.merge!(:only_path => true)
Expand All @@ -110,9 +97,8 @@ def render(options)
"test output for render"
end

# TODO - Mix this in for real
def protect_against_forgery?
false
# For mocking purposes
def method_missing(method_id, *args)
end

end
Expand Down

0 comments on commit b886fbf

Please sign in to comment.