Sha256: ee59188c9705064393ad157271582351347b7e078201efb9d6555b4f8979b6c3

Contents?: true

Size: 405 Bytes

Versions: 18

Compression:

Stored size: 405 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(*args)
    "http://example.com"
  end

  def url_options
    {}
  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

18 entries across 18 versions & 3 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/simple_form-3.4.0/test/support/mock_controller.rb
simple_form-3.4.0 test/support/mock_controller.rb
simple_form-3.3.1 test/support/mock_controller.rb
simple_form-3.3.0 test/support/mock_controller.rb
simple_form-3.2.1 test/support/mock_controller.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/simple_form-3.2.0/test/support/mock_controller.rb
simple_form-3.2.0 test/support/mock_controller.rb
simple_form-3.1.1 test/support/mock_controller.rb
simple_form-3.0.4 test/support/mock_controller.rb
simple_form-3.0.3 test/support/mock_controller.rb
simple_form-3.1.0 test/support/mock_controller.rb
simple_form-3.1.0.rc2 test/support/mock_controller.rb
simple_form-3.1.0.rc1 test/support/mock_controller.rb
simple_form-3.0.2 test/support/mock_controller.rb
simple_form-3.0.1 test/support/mock_controller.rb
simple_form-3.0.0 test/support/mock_controller.rb
simple_form-3.0.0.rc test/support/mock_controller.rb
simple_form-3.0.0.beta1 test/support/mock_controller.rb