Sha256: df166d18c506a13f68d7178a9e2cf4c218df073c0d015cbdc58aaa69a3f9e427

Contents?: true

Size: 611 Bytes

Versions: 8

Compression:

Stored size: 611 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 :fullpath
  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

8 entries across 8 versions & 1 rubygems

Version Path
active_link_to-1.0.2 test/test_helper.rb
active_link_to-1.0.1 test/test_helper.rb
active_link_to-1.0.0 test/test_helper.rb
active_link_to-0.0.10 test/test_helper.rb
active_link_to-0.0.9 test/test_helper.rb
active_link_to-0.0.8 test/test_helper.rb
active_link_to-0.0.7 test/test_helper.rb
active_link_to-0.0.6 test/test_helper.rb