Spaghetti Refactory

  • Home
  • About
  • Projects
  • Github

Saturday, March 28, 2015

Capybara tests with Rails `disable_with` on forms

Here's something that threw me for a loop for a little bit.

When using the disable_with option on form submit buttons, under the hood this is running some minimal JavaScript code, so Capybara tests have to be run as js: true, otherwise they will fail.
Posted by Mark J. Lehman at 11:29 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: capybara, rails, ruby

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Search This Blog

About Me

Mark J. Lehman
View my complete profile

Popular Posts

Blog Archive

  • ►  2016 (8)
    • ►  February (4)
    • ►  January (4)
  • ▼  2015 (67)
    • ►  December (4)
    • ►  November (5)
    • ►  October (4)
    • ►  September (5)
    • ►  August (2)
    • ►  July (5)
    • ►  June (4)
    • ►  May (4)
    • ►  April (5)
    • ▼  March (12)
      • Format your Time the easy way with Rails locales
      • Capybara tests with Rails `disable_with` on forms
      • Rails' flash vs flash.now
      • Attach files and configure `delivery_method` in Ra...
      • Caveat to omitting `self` in Model method calls
      • Undo your last git commit
      • Get easy snippets in Rails views with `truncate`
      • Bash yourself multiple times
      • Using `self` in Model methods
      • Find multiple records with ActiveRecord's Model.find
      • present? vs any? in Rails
      • Discrimination in Rspec
    • ►  February (4)
    • ►  January (13)

Google Analytics & Link Editing

Simple theme. Powered by Blogger.