ruby on rails - Why doesn't selenium run before_filters in my application controller? -


i've got subdomained rails 3.0 app i'm trying test cucumber/capybara/selenium. use subdomain set current site in before_filter in application controller.

all tests work fine, until use @javascript tag. tests run @javascript don't run before_filter , current site never gets set. page doesn't load , tests fail.

these same tests work intended , produce expected pages when use save_and_open_page in appropriate steps.

anyone got ideas why before_filter isn't running under selenium?

my assessment filter wasn't running incorrect. using puts statements debug. in normal cucumber tests these go console window run cucumber from. because tests run @javascript start application, debug statements getting sent unseen output. able keep eye on going on replacing puts statements rails_default_logger.error , tailing log file.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -