Methods
- N
- P
- T
Class Public methods
name()
Link
Instance Public methods
persisted?()
Link
test_homepage_path()
Link
test_homepage_url()
Link
test_link_to_person()
Link
# File actionview/test/template/test_test.rb, line 38 def test_link_to_person with_test_route_set do person = Struct.new(:name) { extend ActiveModel::Naming def to_model; self; end def persisted?; true; end def self.name; 'Mocha::Mock'; end }.new "David" the_model = nil extend Module.new { define_method(:mocha_mock_path) { |model, *args| the_model = model "/people/1" } } assert_equal '<a href="/people/1">David</a>', link_to_person(person) assert_equal person, the_model end end
test_title()
Link