Sha256: cd6e3622b073d9346811d3ac5c51edcca37ad2a93c7d35a352f770ae1d448414

Contents?: true

Size: 441 Bytes

Versions: 1

Compression:

Stored size: 441 Bytes

Contents

class MockController
  attr_writer :action_name

  def _routes
    self
  end

  def action_name
    defined?(@action_name) ? @action_name : "edit"
  end

  def url_for(*)
    "http://example.com"
  end

  def url_options
    {}
  end

  def polymorphic_mappings(*); {}; end

  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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simple_form-3.5.0 test/support/mock_controller.rb