25 lines
423 B
Ruby
25 lines
423 B
Ruby
class MockController
|
|
attr_writer :action_name
|
|
|
|
def _routes
|
|
self
|
|
end
|
|
|
|
def action_name
|
|
defined?(@action_name) ? @action_name : "edit"
|
|
end
|
|
|
|
def url_for(*args)
|
|
"http://example.com"
|
|
end
|
|
|
|
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
|
|
end
|