2009-12-08 13:48:31 +00:00
|
|
|
class MockController
|
2009-12-11 20:32:57 +00:00
|
|
|
attr_accessor :action_name
|
|
|
|
|
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
|
|
|
|
@action_name || "edit"
|
|
|
|
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
|
|
|
|
|
|
|
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 13:48:31 +00:00
|
|
|
end
|