Sha256: ca68ef2039109bc8a8e00221e51a760ed80a49c97c04c83cd778abdbde00abbe

Contents?: true

Size: 423 Bytes

Versions: 23

Compression:

Stored size: 423 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_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

Version data entries

23 entries across 23 versions & 5 rubygems

Version Path
simple_form-2.1.3 test/support/mock_controller.rb
simple_form-2.1.2 test/support/mock_controller.rb
simple_form-2.1.1 test/support/mock_controller.rb
simple_form_awesome-2.5.0 test/support/mock_controller.rb
simple_form_awesome-2.4.0 test/support/mock_controller.rb
simple_form_awesome-2.3.0 test/support/mock_controller.rb
simple_form_awesome-2.2.0 test/support/mock_controller.rb
simple_form-2.1.0 test/support/mock_controller.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/simple_form-2.0.4/test/support/mock_controller.rb
simple_form-2.0.4 test/support/mock_controller.rb
simple_form-2.0.3 test/support/mock_controller.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/simple_form-2.0.2/test/support/mock_controller.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/simple_form-2.0.2/test/support/mock_controller.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/simple_form-2.0.2/test/support/mock_controller.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/simple_form-2.0.2/test/support/mock_controller.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/simple_form-2.0.2/test/support/mock_controller.rb
simple_form-2.0.2 test/support/mock_controller.rb
ehoch_simple_form-2.0.2.dev test/support/mock_controller.rb
simple_form_with_client_validation-0.0.2 test/support/mock_controller.rb
simple_form_with_client_validation-0.0.0 test/support/mock_controller.rb