Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

NYC Standup 9/14/2011: How much is that Capybara in the window?

(Or vice versa.)

Ask for Help

“How can we control popup windows when we’re testing with Capybara?”

See the method within_window.

“How can I stub the current_user in a helper spec?”

Try stubbing #current_user on the helper object in the spec.


In your AR model, if you do this

after_update :do_foo, :if => :bar_changed?
after_update :do_foo, :if => :qux_changed?

The method #do_foo will only be called after an update where qux has changed, not one where only bar has changed. The callbacks are keyed by the methods they call, so the second callback overwrites the first one entirely.

Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *