Minor change (colons)
Blacklist unnecessary external URLs during testing, to speed up acceptance tests.

During testing fonts, facebook and twitter js, etc are not necessary and tests can be sped up a bit by blacklisting those URLs. Blacklisting, in the context of capybara-webkit, means that when the browser downloads the .js, .css or whatever file from that URL, an HTTP 200 is returned with an empty body, without actually ever hitting the network.

Inspired by this blog post:

http://robots.thoughtbot.com/speed-up-javascript-capybara-specs-by-blacklisting-urls
Replace the deprecated simple-form config option "form_class" with the new config option "default_form_class".

For more about the rationale behind the change, see:

https://github.com/plataformatec/simple_form/pull/1109
Added wrapper_options argument to all inputs defined in this app.

This is suggested since a recent change in simple_form. The old way of defining inputs without passing options is deprecated. For more information see:

https://github.com/plataformatec/simple_form/pull/997
For forms that are submitted via Ajax through the ng-submit angularjs directive, pass the submit event as argument to the invoked function, and use it to prevent normal form submit at the end of the function.

This is necessary because of recent changes in how ng-submit works. Previously it stopped normal submit (via POST) of all forms in this app that include the directive, which is the desired behavior. However now it doesn't prevent normal submit if the form has an "action" attribute, even if its value is empty.

This is a big problem because simple_form adds an action="" attribute to generated forms. I haven't found a way to prevent this attribute from being generated, it's probably not supported by simple_form. This means that these forms are broken (the desired submit via Ajax works, but then a normal HTTP POST is sent which fails, because the route it is trying to POST to is not even enabled in router.rb).

The fix is to pass the submit event as argument to all functions that perform Ajax form submitting. The event is used just before returning to prevent the default form submit.

This is at best ugly, but necessary right now. I'm not happy with angularjs, I'm less happy with angular changing its behavior with no warning, but I'm even less happy with simple_form. It would seem that having full control over all form attributes should be a given, but it's not supported (or at least not documented). I'm probably going to get rid of simple_form sooner than later, it's an extremely convoluted solution to what should be a simple problem.
Remove unnecessary "js: true" argument from some unit tests.

Unit tests should never have js enabled, that's for acceptance tests. Also since recently adding URL blacklisting (commit 7ba7af3f7af11b90a754769ac36824f53817b2cb) these tests failed, because rspec tried to perform operations on the page object, which does not exist for unit tests.
Replaced Capybara::Webkit::Driver#resize_window with Capybara::Window#resize_to in tests to get rid of a deprecation warning.