0

To get to run Cucumber with my app and subdomains, I read that I should add default parameters to the default_url_options.

However, I can't seem to find a way to add default parameters to the url_for_event helper that Apotomo gives. I believe this would be the first (if not the only) step to getting integration tests, Apotomo, and subdomains to work.

Ramon Tayag
  • 15,224
  • 9
  • 43
  • 69

1 Answers1

1

I got an answer from Paul Hagstrom in the Apotomo mailing list:

class YourBaseWidget < Apotomo::Widget 
  def default_url_options 
    ... 
  end 
end 

class YourOtherWidgets < YourBaseWidget 
  ... 
end

This works a lot like how most of your Rails controllers inherit from ApplicationController. Thus, anything you apply to ApplicationController will apply, by inheritance, to your child controllers.

Ramon Tayag
  • 15,224
  • 9
  • 43
  • 69