Sha256: a3434f829a96640a22f4348074c6284549615099d6232fcfb48818dc214bee86
Contents?: true
Size: 614 Bytes
Versions: 5
Compression:
Stored size: 614 Bytes
Contents
require 'rubygems' require 'test/unit' require 'action_controller' $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'active_link_to' # need this to simulate requests that drive active_link_helper module FakeRequest class Request attr_accessor :request_uri end def request @request ||= Request.new end def params @params ||= {} end end ActiveLinkTo.send :include, FakeRequest class Test::Unit::TestCase include ActionView::Helpers::UrlHelper include ActionView::Helpers::TagHelper include ActiveLinkTo end
Version data entries
5 entries across 5 versions & 1 rubygems