Sha256: c604123de20a242b373daf095d791b4ce43141f2bb74ab4d4a17a1cfc4d4c1eb

Contents?: true

Size: 189 Bytes

Versions: 17

Compression:

Stored size: 189 Bytes

Contents

class MockController
  attr_accessor :action_name

  def _routes
    self
  end

  def action_name
    @action_name || "edit"
  end

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

Version data entries

17 entries across 17 versions & 4 rubygems

Version Path
storefront-0.3.2 test/support/mock_controller.rb
storefront-0.3.1 test/support/mock_controller.rb
storefront-0.3.0 test/support/mock_controller.rb
storefront-0.2.8 test/support/mock_controller.rb
storefront-0.2.7 test/support/mock_controller.rb
simple_form-1.4.1 test/support/mock_controller.rb
storefront-0.2.1 test/support/mock_controller.rb
storefront-0.2.0 test/support/mock_controller.rb
simple_form-1.4.0 test/support/mock_controller.rb
simple_form-1.3.1 test/support/mock_controller.rb
simple_form-1.3.0 test/support/mock_controller.rb
form_cutter-1.0.2 test/support/mock_controller.rb
form_cutter-1.0.1 test/support/mock_controller.rb
form_cutter-1.0.0 test/support/mock_controller.rb
reverse_captcha-0.0.1 test/support/mock_controller.rb
simple_form-1.2.2 test/support/mock_controller.rb
simple_form-1.2.1 test/support/mock_controller.rb