1
0
Fork 0
mirror of https://github.com/heartcombo/simple_form.git synced 2022-11-09 12:19:26 -05:00
heartcombo--simple_form/test/support/mock_controller.rb
Rafael Mendonça França 2296d25ce3 Remove more warnings
2011-12-18 16:42:56 -02:00

24 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