2009-12-08 08:48:31 -05:00
|
|
|
class MockController
|
2009-12-11 15:32:57 -05:00
|
|
|
attr_accessor :action_name
|
|
|
|
|
2010-07-06 05:24:12 -04:00
|
|
|
def _routes
|
2010-04-22 08:33:23 -04:00
|
|
|
self
|
|
|
|
end
|
|
|
|
|
2010-06-01 17:37:53 -04:00
|
|
|
def action_name
|
2011-12-17 05:57:43 -05:00
|
|
|
defined?(@action_name) ? @action_name : "edit"
|
2010-06-01 17:37:53 -04:00
|
|
|
end
|
|
|
|
|
2009-12-08 08:48:31 -05:00
|
|
|
def url_for(*args)
|
|
|
|
"http://example.com"
|
|
|
|
end
|
2011-06-25 15:42:17 -04:00
|
|
|
|
|
|
|
def url_helpers
|
|
|
|
self
|
|
|
|
end
|
|
|
|
|
|
|
|
def hash_for_user_path(*args); end
|
|
|
|
def hash_for_validating_user_path(*args); end
|
|
|
|
def hash_for_other_validating_user_path(*args); end
|
|
|
|
def hash_for_users_path(*args); end
|
2009-12-08 08:48:31 -05:00
|
|
|
end
|