search for: test_create_link_in_index

Displaying 1 result from an estimated 1 matches for "test_create_link_in_index".

2010 Aug 09
0
Expanding tests with own methods
...f my tests run just fine if I define url_for as a normal instance method: class PagesControllerTest < ActionController::TestCase def url_for(options, *parameters_for_method_reference) options.merge! :only_path => true @controller.url_for(options, *parameters_for_method_reference) end def test_create_link_in_index get :index assert_select "a[href=?]", url_for(:action => :new), :text => ''Neue Seite'' end ... end Thanks in advance. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:...