class Object

Public Class Methods

proxy() click to toggle source
# File lib/decidim/dev/test/rspec_support/puffing_billy.rb, line 46
def self.proxy
  if @billy_proxy.nil? || !(EventMachine.reactor_running? && EventMachine.reactor_thread.alive?)
    proxy = Billy::Proxy.new
    proxy.start
    @billy_proxy = proxy
  else
    @billy_proxy
  end
end

Public Instance Methods

edit_component_path(component) click to toggle source

Returns the config path for a given component.

component - the Component we want to find the root path for.

Returns a url.

# File lib/decidim/dev/test/rspec_support/component_context.rb, line 61
def edit_component_path(component)
  Decidim::EngineRouter.admin_proxy(component.participatory_space).edit_component_path(component.id)
end
visit_component() click to toggle source
# File lib/decidim/dev/test/rspec_support/component_context.rb, line 34
def visit_component
  page.visit main_component_path(component)
end
visit_component_admin() click to toggle source
# File lib/decidim/dev/test/rspec_support/component_context.rb, line 52
def visit_component_admin
  visit manage_component_path(component)
end