…#547). Just over a third of the time it used to take. # before Finished in 178.55 seconds 1148 examples, 0 failures #after Finished in 66.23 seconds 1148 examples, 0 failures
* Rails 3.1 nested inputs won't work unless the nested attributes collection returns a non-empty collection * stub Author#persisted? to get another test passing * stub controller, default_url_options, _routes, _routes.url_helpers, _routes.url_helpers.has_for_..._path, etc * f.fields_for(:some_association) in Rails 3.1 checks for the some_association= method on the parent model, so we need to stub it Disabled some failing i18n specs for now.
… okonski-refactor This was a pretty epic merge. Ended up rewriting most of the tests and leveraging some existing code instead of wmerging in new code that does similar things, but I think the results are right. Many thanks to Jakub Okoński.
numeric functionality for inputs and ValidationHelper#range_options_for. Conflicts: lib/formtastic/form_builder.rb lib/formtastic/inputs/numeric_input.rb
…lecting on numericality validations
…lready responds to (otherwise i'll need to stub it for the next tests to pass)
…e it pass
… #all and collection_from_association
in #mock_everything - age.
…c::Builder, Formtastic::SemanticFormHelper to Formtastic::Helpers::FormHelper and ::Formtastic to just Formtastic. Still need to work out upgrade path/warnings/etc, but the old class names still work for now (for those awesome enough to be on the edge).
Add support to switch between rails versions in dev Usage: bundle install # Initial bundle command to build Gemfile.lock RAILS_2=true bundle update rails # Updates gemfile to run agains rails 2 RAILS_2=true rake # Run tests against rails 2 bundle update rails # Updates gemfile to run agains rails 3 rake # Run tests against rails 3
Rails will automatically render a hidden id input for each nested object unless a hidden id field has already been rendered. The hidden input Rails renders is invalid HTML in the context of ol and li tags. The work-around is to render your own f.input :id, :as => :hidden, which renders the correct mark-up. TODO: Still need to try to render our own hidden field in the block WITHOUT requiring the author to implement this work-around.
…s method has a maximum length validation