2009-12-08 13:48:31 +00:00
|
|
|
class MockController
|
2011-12-18 18:42:56 +00:00
|
|
|
attr_writer :action_name
|
2009-12-11 20:32:57 +00:00
|
|
|
|
2010-07-06 09:24:12 +00:00
|
|
|
def _routes
|
2010-04-22 12:33:23 +00:00
|
|
|
self
|
|
|
|
end
|
|
|
|
|
2010-06-01 21:37:53 +00:00
|
|
|
def action_name
|
2011-12-17 10:57:43 +00:00
|
|
|
defined?(@action_name) ? @action_name : "edit"
|
2010-06-01 21:37:53 +00:00
|
|
|
end
|
|
|
|
|
2009-12-08 13:48:31 +00:00
|
|
|
def url_for(*args)
|
|
|
|
"http://example.com"
|
|
|
|
end
|
2011-06-25 19:42:17 +00:00
|
|
|
|
2012-12-13 18:16:12 +00:00
|
|
|
def url_options
|
|
|
|
{}
|
2011-06-25 19:42:17 +00:00
|
|
|
end
|
|
|
|
|
2012-12-13 18:16:12 +00:00
|
|
|
def hash_for_user_path(*); end
|
|
|
|
def hash_for_validating_user_path(*); end
|
|
|
|
def hash_for_other_validating_user_path(*); end
|
|
|
|
def hash_for_users_path(*); end
|
2009-12-08 13:48:31 +00:00
|
|
|
end
|