Sha256: 816f6e60e89ba7ff2f1fa2b5124fd1c94a558af6be0fc94d15c1986b15654f93

Contents?: true

Size: 476 Bytes

Versions: 10

Compression:

Stored size: 476 Bytes

Contents

# frozen_string_literal: true
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

10 entries across 10 versions & 1 rubygems

Version Path
simple_form-5.2.0 test/support/mock_controller.rb
simple_form-5.1.0 test/support/mock_controller.rb
simple_form-5.0.3 test/support/mock_controller.rb
simple_form-5.0.2 test/support/mock_controller.rb
simple_form-5.0.1 test/support/mock_controller.rb
simple_form-5.0.0 test/support/mock_controller.rb
simple_form-4.1.0 test/support/mock_controller.rb
simple_form-4.0.1 test/support/mock_controller.rb
simple_form-4.0.0 test/support/mock_controller.rb
simple_form-3.5.1 test/support/mock_controller.rb